Huw Davies : ntdll/tests: Dump the handle table on failure.

Alexandre Julliard julliard at winehq.org
Wed Aug 17 10:24:25 CDT 2016


Module: wine
Branch: master
Commit: cf22192b288dfc84991390684bcba6c3d75f6793
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cf22192b288dfc84991390684bcba6c3d75f6793

Author: Huw Davies <huw at codeweavers.com>
Date:   Wed Aug 17 13:45:18 2016 +0100

ntdll/tests: Dump the handle table on failure.

Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/tests/info.c | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/dlls/ntdll/tests/info.c b/dlls/ntdll/tests/info.c
index 19c7d66..ea1f3ef 100644
--- a/dlls/ntdll/tests/info.c
+++ b/dlls/ntdll/tests/info.c
@@ -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);
 




More information about the wine-cvs mailing list