shell32/tests: On NT4 FindExecutable() returns an extra backspace character in some tests.

This commit is contained in:
Francois Gouget 2007-04-02 19:38:15 +02:00 committed by Alexandre Julliard
parent 1736e7eb76
commit 996ced1981

View file

@ -774,14 +774,18 @@ static void test_find_executable(void)
}
if (rc > 32)
{
int equal;
equal=strcmp(command, argv0) == 0 ||
/* NT4 returns an extra 0x8 character! */
(strlen(command) == strlen(argv0)+1 && strncmp(command, argv0, strlen(argv0)) == 0);
if ((test->todo & 0x20)==0)
{
ok(strcmp(command, argv0) == 0, "FindExecutable(%s) returned command='%s' instead of '%s'\n",
ok(equal, "FindExecutable(%s) returned command='%s' instead of '%s'\n",
filename, command, argv0);
}
else todo_wine
{
ok(strcmp(command, argv0) == 0, "FindExecutable(%s) returned command='%s' instead of '%s'\n",
ok(equal, "FindExecutable(%s) returned command='%s' instead of '%s'\n",
filename, command, argv0);
}
}