Bram Moolenaar | c525e3a | 2017-02-18 16:59:02 +0100 | [diff] [blame^] | 1 | " Test :recover |
2 | |||||
3 | func Test_recover_root_dir() | ||||
4 | " This used to access invalid memory. | ||||
5 | split Xtest | ||||
6 | set dir=/ | ||||
7 | call assert_fails('recover', 'E305:') | ||||
8 | close! | ||||
9 | |||||
10 | call assert_fails('split Xtest', 'E303:') | ||||
11 | set dir& | ||||
12 | endfunc | ||||
13 | |||||
14 | " TODO: move recover tests from test78.in to here. |