comparison src/testdir/test_recover.vim @ 18372:11394af51615 v8.1.2180

patch 8.1.2180: Error E303 is not useful when 'directory' is empty Commit: https://github.com/vim/vim/commit/00e192becd50a38cb21a1bc3f86fcc7a21f8ee88 Author: Bram Moolenaar <Bram@vim.org> Date: Sat Oct 19 17:01:28 2019 +0200 patch 8.1.2180: Error E303 is not useful when 'directory' is empty Problem: Error E303 is not useful when 'directory' is empty. Solution: Skip the error message. (Daniel Hahler, https://github.com/vim/vim/issues/5067)
author Bram Moolenaar <Bram@vim.org>
date Sat, 19 Oct 2019 17:15:03 +0200
parents 1fad9675d8fd
children 08940efa6b4e
comparison
equal deleted inserted replaced
18371:d37561c8c48b 18372:11394af51615
10 if has('win32') || filewritable('/') == 2 10 if has('win32') || filewritable('/') == 2
11 " can write in / directory on MS-Windows 11 " can write in / directory on MS-Windows
12 set dir=/notexist/ 12 set dir=/notexist/
13 endif 13 endif
14 call assert_fails('split Xtest', 'E303:') 14 call assert_fails('split Xtest', 'E303:')
15
16 " No error with empty 'directory' setting.
17 set directory=
18 split XtestOK
19 close!
20
15 set dir& 21 set dir&
16 endfunc 22 endfunc
17 23
18 " Inserts 10000 lines with text to fill the swap file with two levels of pointer 24 " Inserts 10000 lines with text to fill the swap file with two levels of pointer
19 " blocks. Then recovers from the swap file and checks all text is restored. 25 " blocks. Then recovers from the swap file and checks all text is restored.