Paul Gofman (@gofman) commented about dlls/ntdll/tests/sync.c:
- for (i = 0; i < ARRAY_SIZE(tests); i++)
- {
winetest_push_context("%s", tests[i].desc);
timeout.QuadPart = tests[i].timeout;
apc_count = 0;
if (tests[i].queue_apc)
QueueUserAPC( apc_proc, GetCurrentThread(), (ULONG_PTR)&apc_count );
/* test NtDelayExecution */
SetLastError( 0xdeadbeef );
status = pNtDelayExecution( tests[i].alertable, &timeout );
ok( GetLastError() == 0xdeadbeef, "got error %#lx.\n", GetLastError() );
todo_wine_if(status == STATUS_TIMEOUT);
There are test failures in Wine after the patch 1 (due to spurious semicolon ';' in the end of this line).