diff options
| author | James McCoy <jamessan@jamessan.com> | 2018-07-27 10:50:57 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-27 10:50:57 -0400 |
| commit | 85a7170f19cbad58607907e853ce605772d4d345 (patch) | |
| tree | 9d7cbd626010980e1287a32e45f384386494b7c3 /src/nvim/testdir | |
| parent | 594859fdd6b0062b326133682edfeaf1dfa86579 (diff) | |
| parent | f0a702d1169a77334f1481d19fc08f8d8413083a (diff) | |
| download | rneovim-85a7170f19cbad58607907e853ce605772d4d345.tar.gz rneovim-85a7170f19cbad58607907e853ce605772d4d345.tar.bz2 rneovim-85a7170f19cbad58607907e853ce605772d4d345.zip | |
Merge pull request #8767 from janlazo/vim-8.0.0493
[RDY] vim-patch:8.0.0493
Diffstat (limited to 'src/nvim/testdir')
| -rw-r--r-- | src/nvim/testdir/test_alot.vim | 1 | ||||
| -rw-r--r-- | src/nvim/testdir/test_cd.vim | 13 |
2 files changed, 14 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_alot.vim b/src/nvim/testdir/test_alot.vim index 1a70ac152f..d026221dac 100644 --- a/src/nvim/testdir/test_alot.vim +++ b/src/nvim/testdir/test_alot.vim @@ -2,6 +2,7 @@ " This makes testing go faster, since Vim doesn't need to restart. source test_assign.vim +source test_cd.vim source test_changedtick.vim source test_cursor_func.vim source test_ex_undo.vim diff --git a/src/nvim/testdir/test_cd.vim b/src/nvim/testdir/test_cd.vim new file mode 100644 index 0000000000..e573419bd0 --- /dev/null +++ b/src/nvim/testdir/test_cd.vim @@ -0,0 +1,13 @@ +" Test for :cd + +func Test_cd_large_path() + " This used to crash with a heap write overflow. + call assert_fails('cd ' . repeat('x', 5000), 'E472:') +endfunc + +func Test_cd_up_and_down() + let path = getcwd() + cd .. + exe 'cd ' . path + call assert_equal(path, getcwd()) +endfunc |