diff src/testdir/test_swap.vim @ 14601:d0ff19a55579 v8.1.0314

patch 8.1.0314: build failure without the +eval feature commit https://github.com/vim/vim/commit/47ad5656e1e4285a74e7e8e5d0f1f71cd554e25c Author: Bram Moolenaar <Bram@vim.org> Date: Tue Aug 21 21:09:07 2018 +0200 patch 8.1.0314: build failure without the +eval feature Problem: Build failure without the +eval feature. (Brenton Horne) Solution: Add #ifdef. Also add the "dirty" item.
author Christian Brabandt <cb@256bit.org>
date Tue, 21 Aug 2018 21:15:06 +0200
parents 72d6f6f7ead7
children 0c47880f3d95
line wrap: on
line diff
--- 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