Mercurial > vim
view src/testdir/test_recover.vim @ 10898:cc3f6ad092c2 v8.0.0338
patch 8.0.0338: :recover test fails on MS-Windows
commit https://github.com/vim/vim/commit/803452046ba6cda7a2896626572eb78b2358c965
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Feb 18 22:43:19 2017 +0100
patch 8.0.0338: :recover test fails on MS-Windows
Problem: :recover test fails on MS-Windows.
Solution: Use non-existing directory on MS-Windows.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 18 Feb 2017 22:45:03 +0100 |
parents | d513b653f5d0 |
children | 0cafb01af1b6 |
line wrap: on
line source
" Test :recover func Test_recover_root_dir() " This used to access invalid memory. split Xtest set dir=/ call assert_fails('recover', 'E305:') close! if has('win32') " can write in / directory on MS-Windows set dir=/notexist/ endif call assert_fails('split Xtest', 'E303:') set dir& endfunc " TODO: move recover tests from test78.in to here.