[kernel/tests/thread] Some extra info when calls fail

Paul Vriens Paul.Vriens at xs4all.nl
Fri Nov 11 14:42:55 CST 2005


Hi,

just some extra error information.

Changelog:
  Add some extra error information

Cheers,

Paul

Index: dlls/kernel/tests/thread.c
===================================================================
RCS file: /home/wine/wine/dlls/kernel/tests/thread.c,v
retrieving revision 1.29
diff -u -p -r1.29 thread.c
--- dlls/kernel/tests/thread.c  10 Nov 2005 11:17:38 -0000      1.29
+++ dlls/kernel/tests/thread.c  11 Nov 2005 20:39:49 -0000
@@ -629,14 +629,14 @@ static void test_SetThreadContext(void)
     HANDLE thread = CreateThread( NULL, 0, threadFunc6, (void *)2, CREATE_SUSPENDED, NULL );

     ctx.ContextFlags = CONTEXT_FULL;
-    ok( GetThreadContext( thread, &ctx ), "GetThreadContext failed\n" );
+    ok( GetThreadContext( thread, &ctx ), "GetThreadContext failed : (%ld)\n", GetLastError() );
     /* simulate a call to set_test_val(10) */
     stack = (int *)ctx.Esp;
     stack[-1] = 10;
     stack[-2] = ctx.Eip;
     ctx.Esp -= 2 * sizeof(int *);
     ctx.Eip = (DWORD)set_test_val;
-    ok( SetThreadContext( thread, &ctx ), "SetThreadContext failed\n" );
+    ok( SetThreadContext( thread, &ctx ), "SetThreadContext failed : (%ld)\n", GetLastError() );
     ResumeThread( thread );
     WaitForSingleObject( thread, INFINITE );
     ok( test_value == 20, "test_value %d instead of 20\n", test_value );




More information about the wine-patches mailing list