Bram Moolenaar | 15618fa | 2017-03-19 21:37:13 +0100 | [diff] [blame] | 1 | " Test for :cd |
2 | |||||
3 | func Test_cd_large_path() | ||||
4 | " This used to crash with a heap write overflow. | ||||
5 | call assert_fails('cd ' . repeat('x', 5000), 'E472:') | ||||
6 | endfunc | ||||
7 | |||||
8 | func Test_cd_up_and_down() | ||||
9 | let path = getcwd() | ||||
10 | cd .. | ||||
11 | exe 'cd ' . path | ||||
12 | call assert_equal(path, getcwd()) | ||||
13 | endfunc |