patch 8.1.1413: error when the drive of the swap file was disconnected
Problem: Error when the drive of the swap file was disconnected.
Solution: Try closing and re-opening the swap file. (closes #4378)
diff --git a/src/testdir/test_startup.vim b/src/testdir/test_startup.vim
index 33257f7..0ce8c81 100644
--- a/src/testdir/test_startup.vim
+++ b/src/testdir/test_startup.vim
@@ -288,24 +288,24 @@
" Test with default argument '-q'.
call assert_equal('errors.err', &errorfile)
- call writefile(["../memfile.c:1482:5: error: expected ';' before '}' token"], 'errors.err')
+ call writefile(["../memfile.c:208:5: error: expected ';' before '}' token"], 'errors.err')
if RunVim([], after, '-q')
let lines = readfile('Xtestout')
call assert_equal(['errors.err',
- \ '[0, 1482, 5, 0]',
- \ source_file . "|1482 col 5| error: expected ';' before '}' token"],
+ \ '[0, 208, 5, 0]',
+ \ source_file . "|208 col 5| error: expected ';' before '}' token"],
\ lines)
endif
call delete('Xtestout')
call delete('errors.err')
" Test with explicit argument '-q Xerrors' (with space).
- call writefile(["../memfile.c:1482:5: error: expected ';' before '}' token"], 'Xerrors')
+ call writefile(["../memfile.c:208:5: error: expected ';' before '}' token"], 'Xerrors')
if RunVim([], after, '-q Xerrors')
let lines = readfile('Xtestout')
call assert_equal(['Xerrors',
- \ '[0, 1482, 5, 0]',
- \ source_file . "|1482 col 5| error: expected ';' before '}' token"],
+ \ '[0, 208, 5, 0]',
+ \ source_file . "|208 col 5| error: expected ';' before '}' token"],
\ lines)
endif
call delete('Xtestout')
@@ -314,8 +314,8 @@
if RunVim([], after, '-qXerrors')
let lines = readfile('Xtestout')
call assert_equal(['Xerrors',
- \ '[0, 1482, 5, 0]',
- \ source_file . "|1482 col 5| error: expected ';' before '}' token"],
+ \ '[0, 208, 5, 0]',
+ \ source_file . "|208 col 5| error: expected ';' before '}' token"],
\ lines)
endif