last_pid = (DWORD_PTR)spi->UniqueProcessId;
+ disable_success_count
ok( spi->dwThreadCount > 0, "Expected some threads for this process, got 0\n");
/* Loop through the threads, skip NT4 for now */
for ( j = 0; j < spi->dwThreadCount; j++)
{
k++;
+ disable_success_count
ok ( spi->ti[j].ClientId.UniqueProcess == spi->UniqueProcessId,
"The owning pid of the thread (%p) doesn't equal the pid (%p) of the process\n",
spi->ti[j].ClientId.UniqueProcess, spi->UniqueProcessId);
for (;;)
{
ret = WaitForDebugEvent(&ev, 1000);
+ disable_success_count
ok(ret, "WaitForDebugEvent failed, last error %#x.\n", GetLastError());
if (!ret) break;
if (ev.dwDebugEventCode == LOAD_DLL_DEBUG_EVENT) break;
ret = ContinueDebugEvent(ev.dwProcessId, ev.dwThreadId, DBG_CONTINUE);
+ disable_success_count
ok(ret, "ContinueDebugEvent failed, last error %#x.\n", GetLastError());
if (!ret) break;
}
for (j = 0; j < 100; j++)
{
ret = WaitForDebugEvent(&ev, 1000);
+ disable_success_count
ok(ret || broken(GetLastError() == ERROR_SEM_TIMEOUT),
"WaitForDebugEvent failed, last error %#x.\n", GetLastError());
if (!ret) break;
if (ev.dwDebugEventCode == EXIT_PROCESS_DEBUG_EVENT) break;
ret = ContinueDebugEvent(ev.dwProcessId, ev.dwThreadId, DBG_CONTINUE);
+ disable_success_count
ok(ret, "ContinueDebugEvent failed, last error %#x.\n", GetLastError());
if (!ret) break;
}
char **argv;
int argc;
- if(!InitFunctionPtrs())
- return;
-
argc = winetest_get_mainargs(&argv);
if (argc >= 3) return; /* Child */
+ if (!InitFunctionPtrs())
+ return;
+
/* NtQuerySystemInformation */
/* 0x0 SystemBasicInformation */