aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir/test_recover.vim
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/testdir/test_recover.vim')
-rw-r--r--src/nvim/testdir/test_recover.vim14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_recover.vim b/src/nvim/testdir/test_recover.vim
new file mode 100644
index 0000000000..aa291b1294
--- /dev/null
+++ b/src/nvim/testdir/test_recover.vim
@@ -0,0 +1,14 @@
+" Test :recover
+
+func Test_recover_root_dir()
+ " This used to access invalid memory.
+ split Xtest
+ set dir=/
+ call assert_fails('recover', 'E305:')
+ close!
+
+ call assert_fails('split Xtest', 'E303:')
+ set dir&
+endfunc
+
+" TODO: move recover tests from test78.in to here.