Mercurial > vim
comparison src/testdir/test_recover.vim @ 11432:0cafb01af1b6 v8.0.0600
patch 8.0.0600: test_recover fails on some systems
commit https://github.com/vim/vim/commit/2a0b06def49198aef45ef173f524a638a700f9c9
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu May 18 16:23:43 2017 +0200
patch 8.0.0600: test_recover fails on some systems
Problem: test_recover fails on some systems.
Solution: Explicitly check if "/" is writable. (Ken Takata)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 18 May 2017 16:30:03 +0200 |
parents | cc3f6ad092c2 |
children | 4767939d10cc |
comparison
equal
deleted
inserted
replaced
11431:1597b1207296 | 11432:0cafb01af1b6 |
---|---|
5 split Xtest | 5 split Xtest |
6 set dir=/ | 6 set dir=/ |
7 call assert_fails('recover', 'E305:') | 7 call assert_fails('recover', 'E305:') |
8 close! | 8 close! |
9 | 9 |
10 if has('win32') | 10 if has('win32') || filewritable('/') == 2 |
11 " can write in / directory on MS-Windows | 11 " can write in / directory on MS-Windows |
12 set dir=/notexist/ | 12 set dir=/notexist/ |
13 endif | 13 endif |
14 call assert_fails('split Xtest', 'E303:') | 14 call assert_fails('split Xtest', 'E303:') |
15 set dir& | 15 set dir& |