aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-04-12 02:44:06 -0400
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-04-12 02:44:06 -0400
commit714e0f8bf05cc6febcbcd8cbcbe5f119c37a14b0 (patch)
tree4a6eef1528a10befbc506981eb17fa10460a1472
parentbc43d2559f33aa6334d70834b389f0bc59dadcbf (diff)
downloadrneovim-714e0f8bf05cc6febcbcd8cbcbe5f119c37a14b0.tar.gz
rneovim-714e0f8bf05cc6febcbcd8cbcbe5f119c37a14b0.tar.bz2
rneovim-714e0f8bf05cc6febcbcd8cbcbe5f119c37a14b0.zip
oldtests: win: keep set dir=/
Any user can create a directory on root. Creating a directory on root allows any user to write files within that directory. Test_recover_root_dir() passes when run locally as a regular user (not admin).
-rw-r--r--src/nvim/testdir/test_recover.vim5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/nvim/testdir/test_recover.vim b/src/nvim/testdir/test_recover.vim
index 46d884a97c..beecb4cd0d 100644
--- a/src/nvim/testdir/test_recover.vim
+++ b/src/nvim/testdir/test_recover.vim
@@ -6,11 +6,6 @@ func Test_recover_root_dir()
set dir=/
call assert_fails('recover', 'E305:')
close!
-
- if has('win32') || filewritable('/') == 2
- " can write in / directory on MS-Windows
- set dir=/notexist/
- endif
call assert_fails('split Xtest', 'E303:')
set dir&
endfunc