diff options
author | Bram Moolenaar <Bram@vim.org> | 2013-06-19 21:17:31 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2013-06-19 21:17:31 +0200 |
commit | d73895ec00b56e22bf4f95857aa88dd129e11d06 (patch) | |
tree | 97c0c39fe452394cb97fb7d9aa6b3763cf28c321 /src/testdir/test50.in | |
parent | 22f93c700f79577a395d28b186a900bae20fd5b9 (diff) | |
download | vim-git-d73895ec00b56e22bf4f95857aa88dd129e11d06.tar.gz |
updated for version 7.3.1223v7.3.1223
Problem: Tests fail on MS-Windows.
Solution: Avoid depending on OS version. Use DOS commands instead of Unix
commands. (Taro Muraoka, Ken Takata)
Diffstat (limited to 'src/testdir/test50.in')
-rw-r--r-- | src/testdir/test50.in | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/testdir/test50.in b/src/testdir/test50.in index d78ac8e8f..0cbf4bf6d 100644 --- a/src/testdir/test50.in +++ b/src/testdir/test50.in @@ -33,7 +33,7 @@ endfun " This could change for CygWin to //cygdrive/c let dir1='c:/x.x.y' if filereadable(dir1) || isdirectory(dir1) - call confirm( "'".dir1."' exists, cannot run test" ) + echo "FATAL: '".dir1."' exists, cannot run test" return endif let file1=dir1.'/zz.y.txt' @@ -41,13 +41,18 @@ endfun let dir2=dir1.'/VimIsTheGreatestSinceSlicedBread' let file2=dir2.'/z.txt' let nofile2=dir2.'/zz.txt' - let resdir1='c:/XX2235~1.Y' + call MakeDir( dir1 ) + let resdir1 = substitute(fnamemodify(dir1, ':p:8'), '\\$', '', '') + if resdir1 !~ '\V\^c:/XX\x\x\x\x~1.Y\$' + echo "FATAL: unexpected short name: " . resdir1 + echo "INFO: please report your OS to vim-dev" + return + endif let resfile1=resdir1.'/ZZY~1.TXT' let resnofile1=resdir1.'/z.y.txt' let resdir2=resdir1.'/VIMIST~1' let resfile2=resdir2.'/z.txt' let resnofile2=resdir2.'/zz.txt' - call MakeDir( dir1 ) call MakeDir( dir2 ) call MakeFile( file1 ) call MakeFile( file2 ) |