Commit 5c1e6cf7 authored by Detlef Riekenberg's avatar Detlef Riekenberg Committed by Alexandre Julliard

kernel32/tests: Fix 32-bit thread test failures on NT 5.x 64bit.

parent 1f090898
...@@ -961,16 +961,19 @@ static void test_SetThreadContext(void) ...@@ -961,16 +961,19 @@ static void test_SetThreadContext(void)
ctx.ContextFlags = CONTEXT_FULL; ctx.ContextFlags = CONTEXT_FULL;
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = GetThreadContext( thread, &ctx ); ret = GetThreadContext( thread, &ctx );
ok( !ret, "GetThreadContext succeeded\n" ); ok( (!ret && (GetLastError() == ERROR_GEN_FAILURE)) ||
ok( GetLastError() == ERROR_GEN_FAILURE || broken(GetLastError() == ERROR_INVALID_HANDLE), /* win2k */ (!ret && broken(GetLastError() == ERROR_INVALID_HANDLE)) || /* win2k */
"wrong error %u\n", GetLastError() ); broken(ret), /* 32bit application on NT 5.x 64bit */
"got %d with %u (expected FALSE with ERROR_GEN_FAILURE)\n",
ret, GetLastError() );
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = SetThreadContext( thread, &ctx ); ret = SetThreadContext( thread, &ctx );
ok( !ret, "SetThreadContext succeeded\n" ); ok( (!ret && ((GetLastError() == ERROR_GEN_FAILURE) || (GetLastError() == ERROR_ACCESS_DENIED))) ||
ok( GetLastError() == ERROR_GEN_FAILURE || GetLastError() == ERROR_ACCESS_DENIED || (!ret && broken(GetLastError() == ERROR_INVALID_HANDLE)) || /* win2k */
broken(GetLastError() == ERROR_INVALID_HANDLE), /* win2k */ broken(ret), /* 32bit application on NT 5.x 64bit */
"wrong error %u\n", GetLastError() ); "got %d with %u (expected FALSE with ERROR_GEN_FAILURE or ERROR_ACCESS_DENIED)\n",
ret, GetLastError() );
CloseHandle( thread ); CloseHandle( thread );
} }
......
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