ntdll/tests: Dump the handle table on failure.

Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Huw Davies 2016-08-17 13:45:18 +01:00 committed by Alexandre Julliard
parent 4e8f43f423
commit cf22192b28
1 changed files with 5 additions and 1 deletions

View File

@ -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);