Commit 82debc09 authored by André Hentschel's avatar André Hentschel Committed by Alexandre Julliard

kernel32/tests: Use todo_wine_if() in tests.

parent dbc043c3
...@@ -3754,17 +3754,13 @@ static void test_CreateFile(void) ...@@ -3754,17 +3754,13 @@ static void test_CreateFile(void)
if (i == 0 || i == 5) if (i == 0 || i == 5)
{ {
/* FIXME: remove once Wine is fixed */ /* FIXME: remove once Wine is fixed */
if (i == 5) todo_wine todo_wine_if (i == 5)
ok(GetLastError() == ERROR_INVALID_PARAMETER, "%d: expected ERROR_INVALID_PARAMETER, got %d\n", i, GetLastError());
else
ok(GetLastError() == ERROR_INVALID_PARAMETER, "%d: expected ERROR_INVALID_PARAMETER, got %d\n", i, GetLastError()); ok(GetLastError() == ERROR_INVALID_PARAMETER, "%d: expected ERROR_INVALID_PARAMETER, got %d\n", i, GetLastError());
} }
else else
{ {
/* FIXME: remove once Wine is fixed */ /* FIXME: remove once Wine is fixed */
if (i == 1) todo_wine todo_wine_if (i == 1)
ok(GetLastError() == ERROR_ACCESS_DENIED, "%d: expected ERROR_ACCESS_DENIED, got %d\n", i, GetLastError());
else
ok(GetLastError() == ERROR_ACCESS_DENIED, "%d: expected ERROR_ACCESS_DENIED, got %d\n", i, GetLastError()); ok(GetLastError() == ERROR_ACCESS_DENIED, "%d: expected ERROR_ACCESS_DENIED, got %d\n", i, GetLastError());
} }
...@@ -3776,9 +3772,7 @@ else ...@@ -3776,9 +3772,7 @@ else
else else
{ {
/* FIXME: remove once Wine is fixed */ /* FIXME: remove once Wine is fixed */
if (i == 1) todo_wine todo_wine_if (i == 1)
ok(GetLastError() == ERROR_ACCESS_DENIED, "%d: expected ERROR_ACCESS_DENIED, got %d\n", i, GetLastError());
else
ok(GetLastError() == ERROR_ACCESS_DENIED, "%d: expected ERROR_ACCESS_DENIED, got %d\n", i, GetLastError()); ok(GetLastError() == ERROR_ACCESS_DENIED, "%d: expected ERROR_ACCESS_DENIED, got %d\n", i, GetLastError());
} }
} }
......
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