Skip to content

Commit

Permalink
updated for version 7.3.1301
Browse files Browse the repository at this point in the history
Problem:    Some tests fail on MS-Windows.
Solution:   Fix path separators in test 89 and 96.  Omit test 97, escaping
            works differently.  Make findfile() work on MS-Windows.
  • Loading branch information
brammool committed Jul 3, 2013
1 parent 3437b91 commit ee0ee2a
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 8 deletions.
6 changes: 3 additions & 3 deletions src/misc2.c
Expand Up @@ -4693,14 +4693,14 @@ vim_findfile_init(path, filename, stopdirs, level, free_visited, find_what,
#ifdef FEAT_PATH_EXTRA
else
{
char_u *p = vim_strrchr(search_ctx->ffsc_fix_path, PATHSEP);
char_u *p = gettail(search_ctx->ffsc_fix_path);
char_u *wc_path = NUL;
char_u *temp = NUL;
int len = 0;

if (p != NULL)
if (p > search_ctx->ffsc_fix_path)
{
len = p - search_ctx->ffsc_fix_path;
len = p - search_ctx->ffsc_fix_path - 1;
STRNCAT(ff_expand_buffer, search_ctx->ffsc_fix_path, len);
add_pathsep(ff_expand_buffer);
}
Expand Down
4 changes: 2 additions & 2 deletions src/testdir/Make_dos.mak
Expand Up @@ -11,7 +11,7 @@ VIMPROG = ..\\vim
# test12 can't unlink a swap file
# test25 uses symbolic link
# test27 can't edit file with "*" in file name
# test31 16 bit version runs out of memory...
# test97 \{ and \$ are not escaped characters.

SCRIPTS16 = test1.out test19.out test20.out test22.out \
test23.out test24.out test28.out test29.out \
Expand All @@ -32,7 +32,7 @@ SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
test79.out test80.out test81.out test82.out test83.out \
test84.out test85.out test86.out test87.out test88.out \
test89.out test90.out test91.out test92.out test93.out \
test94.out test95.out test96.out test97.out
test94.out test95.out test96.out

SCRIPTS32 = test50.out test70.out

Expand Down
4 changes: 2 additions & 2 deletions src/testdir/Make_ming.mak
Expand Up @@ -28,7 +28,7 @@ VIMPROG = ..$(DIRSLASH)vim
# test12 can't unlink a swap file
# test25 uses symbolic link
# test27 can't edit file with "*" in file name
# test31 16 bit version runs out of memory...
# test97 \{ and \$ are not escaped characters.

SCRIPTS16 = test1.out test19.out test20.out test22.out \
test23.out test24.out test28.out test29.out \
Expand All @@ -52,7 +52,7 @@ SCRIPTS = test3.out test4.out test5.out test6.out test7.out \
test79.out test80.out test81.out test82.out test83.out \
test84.out test85.out test86.out test87.out test88.out \
test89.out test90.out test91.out test92.out test93.out \
test94.out test95.out test96.out test97.out
test94.out test95.out test96.out

SCRIPTS32 = test50.out test70.out

Expand Down
3 changes: 2 additions & 1 deletion src/testdir/Make_os2.mak
Expand Up @@ -15,6 +15,7 @@ VIMPROG = ../vim.exe
# test52 only for Win32
# test85 no Lua interface
# test86, 87 no Python interface
# test97 \{ and \$ are not escaped characters.

SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
test7.out test8.out test9.out \
Expand All @@ -33,7 +34,7 @@ SCRIPTS = test1.out test3.out test4.out test5.out test6.out \
test76.out test77.out test78.out test79.out test80.out \
test81.out test82.out test83.out test84.out test88.out \
test89.out test90.out test91.out test92.out test93.out \
test94.out test95.out test96.out test97.out
test94.out test95.out test96.out

.SUFFIXES: .in .out

Expand Down
3 changes: 3 additions & 0 deletions src/testdir/test96.in
Expand Up @@ -72,6 +72,8 @@ STARTTEST
:wincmd n
:wincmd K
:b test.out
:let fileName = substitute(fileName, '\\', '/', 'g')
:let locationListFileName = substitute(locationListFileName, '\\', '/', 'g')
:call append(line('$'), "Test A:")
:call append(line('$'), " - file name displayed: " . fileName)
:call append(line('$'), " - quickfix claims that the file name displayed is: " . locationListFileName)
Expand Down Expand Up @@ -125,6 +127,7 @@ STARTTEST
:wincmd n
:wincmd K
:b test.out
:let bufferName = substitute(bufferName, '\\', '/', 'g')
:call append(line('$'), "Test C:")
:call append(line('$'), " - 'buftype' of the location list window: " . locationListWindowBufType)
:call append(line('$'), " - buffer displayed in the 2nd window: " . bufferName)
Expand Down
2 changes: 2 additions & 0 deletions src/version.c
Expand Up @@ -728,6 +728,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1301,
/**/
1300,
/**/
Expand Down

0 comments on commit ee0ee2a

Please sign in to comment.