Commit 589d7eaa authored by Aric Stewart's avatar Aric Stewart Committed by Alexandre Julliard

ntdll/tests: handle info behavior for vista and 2008 properly.

parent ccba8578
......@@ -376,9 +376,18 @@ static void test_query_procperf(void)
ok( status == STATUS_SUCCESS || status == STATUS_INFO_LENGTH_MISMATCH /* vista */,
"Expected STATUS_SUCCESS or STATUS_INFO_LENGTH_MISMATCH, got %08x\n", status);
ok( NeededLength == ReturnLength, "Inconsistent length (%d) <-> (%d)\n", NeededLength, ReturnLength);
ok (sppi->KernelTime.QuadPart != 0xdeaddead, "KernelTime unchanged\n");
ok (sppi->UserTime.QuadPart != 0xdeaddead, "UserTime unchanged\n");
ok (sppi->IdleTime.QuadPart != 0xdeaddead, "IdleTime unchanged\n");
if (status == STATUS_SUCCESS)
{
ok (sppi->KernelTime.QuadPart != 0xdeaddead, "KernelTime unchanged\n");
ok (sppi->UserTime.QuadPart != 0xdeaddead, "UserTime unchanged\n");
ok (sppi->IdleTime.QuadPart != 0xdeaddead, "IdleTime unchanged\n");
}
else /* vista and 2008 */
{
ok (sppi->KernelTime.QuadPart == 0xdeaddead, "KernelTime changed\n");
ok (sppi->UserTime.QuadPart == 0xdeaddead, "UserTime changed\n");
ok (sppi->IdleTime.QuadPart == 0xdeaddead, "IdleTime changed\n");
}
HeapFree( GetProcessHeap(), 0, sppi);
}
......
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