ChangeSet ID: 21234 CVSROOT: /opt/cvs-commit Module name: wine Changes by: julliard@winehq.org 2005/11/12 13:11:05
Modified files: dlls/kernel/tests: thread.c
Log message: Paul Vriens Paul.Vriens@xs4all.nl Add some extra error information.
Patch: http://cvs.winehq.org/patch.py?id=21234
Old revision New revision Changes Path 1.29 1.30 +2 -2 wine/dlls/kernel/tests/thread.c
Index: wine/dlls/kernel/tests/thread.c diff -u -p wine/dlls/kernel/tests/thread.c:1.29 wine/dlls/kernel/tests/thread.c:1.30 --- wine/dlls/kernel/tests/thread.c:1.29 12 Nov 2005 19:11: 5 -0000 +++ wine/dlls/kernel/tests/thread.c 12 Nov 2005 19:11: 5 -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 );