Commit cf22192b authored by Huw Davies's avatar Huw Davies Committed by Alexandre Julliard

ntdll/tests: Dump the handle table on failure.

parent 4e8f43f4
......@@ -521,7 +521,11 @@ static void test_query_handle(void)
for (i = 0, found = FALSE; i < shi->Count && !found; i++)
found = (shi->Handle[i].OwnerPid == GetCurrentProcessId()) &&
((HANDLE)(ULONG_PTR)shi->Handle[i].HandleValue == EventHandle);
ok( found, "Expected to find event handle in handle list\n" );
ok( found, "Expected to find event handle %p (pid %x) in handle list\n", EventHandle, GetCurrentProcessId() );
if (!found)
for (i = 0; i < shi->Count; i++)
trace( "%d: handle %x pid %x\n", i, shi->Handle[i].HandleValue, shi->Handle[i].OwnerPid );
CloseHandle(EventHandle);
......
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