summaryrefslogtreecommitdiff
path: root/src/testdir/test_swap.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-08-21 21:09:07 +0200
committerBram Moolenaar <Bram@vim.org>2018-08-21 21:09:07 +0200
commit47ad5656e1e4285a74e7e8e5d0f1f71cd554e25c (patch)
treef5cd3064f4d3dc00b73c46ba83df45c6430d9261 /src/testdir/test_swap.vim
parent00f123a56585363cd13f062fd3bb123efcfaa664 (diff)
downloadvim-git-47ad5656e1e4285a74e7e8e5d0f1f71cd554e25c.tar.gz
patch 8.1.0314: build failure without the +eval featurev8.1.0314
Problem: Build failure without the +eval feature. (Brenton Horne) Solution: Add #ifdef. Also add the "dirty" item.
Diffstat (limited to 'src/testdir/test_swap.vim')
-rw-r--r--src/testdir/test_swap.vim3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testdir/test_swap.vim b/src/testdir/test_swap.vim
index b0e2ec9aa..c12693c81 100644
--- a/src/testdir/test_swap.vim
+++ b/src/testdir/test_swap.vim
@@ -109,6 +109,7 @@ func Test_swapinfo()
call assert_match('\w', info.user)
call assert_equal(hostname(), info.host)
call assert_match('Xswapinfo', info.fname)
+ call assert_match(0, info.dirty)
call assert_equal(getpid(), info.pid)
call assert_match('^\d*$', info.mtime)
if has_key(info, 'inode')
@@ -128,6 +129,6 @@ func Test_swapinfo()
call writefile([repeat('x', 10000)], 'Xnotaswapfile')
let info = swapinfo('Xnotaswapfile')
- call assert_equal('magic number mismatch', info.error)
+ call assert_equal('Not a swap file', info.error)
call delete('Xnotaswapfile')
endfunc