Commit 0e64e056 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

shell32/tests: Fix the PathResolve() tests on Windows 8.1, early 10.

Some Windows 8.1 and Windows 10 1507 versions return PATH_NOT_FOUND instead of FILE_NOT_FOUND. Signed-off-by: 's avatarFrancois Gouget <fgouget@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 865029ae
...@@ -3014,7 +3014,9 @@ static void test_PathResolve(void) ...@@ -3014,7 +3014,9 @@ static void test_PathResolve(void)
ok(!lstrcmpiW(path, tests[i].expected_path), ok(!lstrcmpiW(path, tests[i].expected_path),
"expected %s, got %s\n", wine_dbgstr_w(tests[i].expected_path), wine_dbgstr_w(path)); "expected %s, got %s\n", wine_dbgstr_w(tests[i].expected_path), wine_dbgstr_w(path));
if (!tests[i].expected) if (!tests[i].expected)
ok(GetLastError() == ERROR_FILE_NOT_FOUND, "expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError()); ok(GetLastError() == ERROR_FILE_NOT_FOUND ||
broken(GetLastError() == ERROR_PATH_NOT_FOUND /* some win 8.1 & 10 */),
"expected ERROR_FILE_NOT_FOUND, got %d\n", GetLastError());
winetest_pop_context(); winetest_pop_context();
} }
......
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