From c9aafda6ac5867ca264237e1d70a65c6fc47a788 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Fri, 2 Feb 2018 01:41:37 +0100 Subject: vim-patch:8.0.0600: test_recover fails on some systems Problem: test_recover fails on some systems. Solution: Explicitly check if "/" is writable. (Ken Takata) https://github.com/vim/vim/commit/2a0b06def49198aef45ef173f524a638a700f9c9 --- src/nvim/testdir/test_recover.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nvim/testdir/test_recover.vim b/src/nvim/testdir/test_recover.vim index 33cd54bc5c..2e34985fed 100644 --- a/src/nvim/testdir/test_recover.vim +++ b/src/nvim/testdir/test_recover.vim @@ -7,7 +7,7 @@ func Test_recover_root_dir() call assert_fails('recover', 'E305:') close! - if has('win32') + if has('win32') || filewritable('/') == 2 " can write in / directory on MS-Windows set dir=/notexist/ endif -- cgit