schedsvc/tests: Avoid test failures on file systems with enabled directory randomization.

This commit is contained in:
Dmitry Timoshkov 2014-04-08 15:49:11 +09:00 committed by Alexandre Julliard
parent 8dee40e65a
commit 96760c3b51
1 changed files with 6 additions and 2 deletions

View File

@ -405,7 +405,9 @@ START_TEST(rpcapi)
ok(count == 1, "expected 1, got %u\n", count);
ok(start_index == 1, "expected 1, got %u\n", start_index);
ok(names != NULL, "names should not be NULL\n");
ok(!lstrcmpW(names[0], Task1), "expected Task1, got %s\n", wine_dbgstr_w(names[0]));
/* returned name depends whether directory randomization is on */
ok(!lstrcmpW(names[0], Task1) || !lstrcmpW(names[0], Task2),
"expected Task3, got %s\n", wine_dbgstr_w(names[0]));
MIDL_user_free(names[0]);
MIDL_user_free(names);
@ -465,7 +467,9 @@ START_TEST(rpcapi)
ok(count == 1, "expected 1, got %u\n", count);
ok(start_index == 3, "expected 3, got %u\n", start_index);
ok(names != NULL, "names should not be NULL\n");
ok(!lstrcmpW(names[0], Task3), "expected Task3, got %s\n", wine_dbgstr_w(names[0]));
/* returned name depends whether directory randomization is on */
ok(!lstrcmpW(names[0], Task1) || !lstrcmpW(names[0], Task2) || !lstrcmpW(names[0], Task3),
"expected Task3, got %s\n", wine_dbgstr_w(names[0]));
MIDL_user_free(names[0]);
MIDL_user_free(names);