Commit 95ddcc3b authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

shell32/tests: Fix some expected FindExecutable() error codes.

Add comments indicating which Windows version returns a given error code.
parent 0081b430
...@@ -697,12 +697,12 @@ static void test_find_executable(void) ...@@ -697,12 +697,12 @@ static void test_find_executable(void)
strcpy(command, "your word"); strcpy(command, "your word");
rc=(int)FindExecutableA(NULL, NULL, command); rc=(int)FindExecutableA(NULL, NULL, command);
ok(rc == SE_ERR_FNF || rc > 32, "FindExecutable(NULL) returned %d\n", rc); ok(rc == SE_ERR_FNF || rc > 32 /* nt4 */, "FindExecutable(NULL) returned %d\n", rc);
ok(strcmp(command, "your word") != 0, "FindExecutable(NULL) returned command=[%s]\n", command); ok(strcmp(command, "your word") != 0, "FindExecutable(NULL) returned command=[%s]\n", command);
strcpy(command, "your word"); strcpy(command, "your word");
rc=(int)FindExecutableA(tmpdir, NULL, command); rc=(int)FindExecutableA(tmpdir, NULL, command);
todo_wine ok(rc == SE_ERR_FNF || rc > 32, "FindExecutable(NULL) returned %d\n", rc); ok(rc == SE_ERR_NOASSOC /* >= win2000 */ || rc > 32 /* win98, nt4 */, "FindExecutable(NULL) returned %d\n", rc);
ok(strcmp(command, "your word") != 0, "FindExecutable(NULL) returned command=[%s]\n", command); ok(strcmp(command, "your word") != 0, "FindExecutable(NULL) returned command=[%s]\n", command);
sprintf(filename, "%s\\test file.sfe", tmpdir); sprintf(filename, "%s\\test file.sfe", tmpdir);
...@@ -723,7 +723,7 @@ static void test_find_executable(void) ...@@ -723,7 +723,7 @@ static void test_find_executable(void)
sprintf(filename, "%s\\test file.shl", tmpdir); sprintf(filename, "%s\\test file.shl", tmpdir);
rc=(int)FindExecutableA(filename, NULL, command); rc=(int)FindExecutableA(filename, NULL, command);
ok(rc > 32, "FindExecutable(%s) returned %d\n", filename, rc); ok(rc == SE_ERR_FNF /* NT4 */ || rc > 32, "FindExecutable(%s) returned %d\n", filename, rc);
sprintf(filename, "%s\\test file.shlfoo", tmpdir); sprintf(filename, "%s\\test file.shlfoo", tmpdir);
rc=(int)FindExecutableA(filename, NULL, command); rc=(int)FindExecutableA(filename, NULL, command);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment