Author: spetreolle Date: Sat Oct 3 22:21:19 2015 New Revision: 69436
URL: http://svn.reactos.org/svn/reactos?rev=69436&view=rev Log: [ROSTESTS] Fix 0x%lu specifier. Add cmake file for notificationtest.
Added: trunk/rostests/win32/CMakeLists.txt (with props) Modified: trunk/rostests/tests/apc/apc.c trunk/rostests/tests/subclass/subclass.c trunk/rostests/win32/kernel32/queuetest/queuetest.c
Modified: trunk/rostests/tests/apc/apc.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/tests/apc/apc.c?rev=69436&... ============================================================================== --- trunk/rostests/tests/apc/apc.c [iso-8859-1] (original) +++ trunk/rostests/tests/apc/apc.c [iso-8859-1] Sat Oct 3 22:21:19 2015 @@ -63,7 +63,7 @@ if (FileHandle == INVALID_HANDLE_VALUE) {
- printf("Open failed last err 0x%lu\n",GetLastError()); + printf("Open failed last err 0x%lx\n",GetLastError()); return 0; }
@@ -82,7 +82,7 @@
if (!NT_SUCCESS(Status)) { - printf("Read failed status 0x%lu\n",Status); + printf("Read failed status 0x%lx\n",Status); } printf("Waiting\n"); WaitForSingleObjectEx(EventHandle, INFINITE, TRUE);
Modified: trunk/rostests/tests/subclass/subclass.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/tests/subclass/subclass.c?... ============================================================================== --- trunk/rostests/tests/subclass/subclass.c [iso-8859-1] (original) +++ trunk/rostests/tests/subclass/subclass.c [iso-8859-1] Sat Oct 3 22:21:19 2015 @@ -31,7 +31,7 @@ wc.cbWndExtra = 0; if (RegisterClassW(&wc) == 0) { - fprintf(stderr, "RegisterClassW failed (last error 0x%lu)\n", + fprintf(stderr, "RegisterClassW failed (last error 0x%lx)\n", GetLastError()); return 1; } @@ -50,7 +50,7 @@ NULL); if (hWnd == NULL) { - fprintf(stderr, "CreateWindowA failed (last error 0x%lu)\n", + fprintf(stderr, "CreateWindowA failed (last error 0x%lx)\n", GetLastError()); return 1; } @@ -60,7 +60,7 @@ printf("Calling GetWindowTextW\n"); if (! GetWindowTextW(hWnd, WindowTextW, sizeof(WindowTextW) / sizeof(WindowTextW[0]))) { - fprintf(stderr, "GetWindowTextW failed (last error 0x%lu)\n", GetLastError()); + fprintf(stderr, "GetWindowTextW failed (last error 0x%lx)\n", GetLastError()); return 1; } printf("GetWindowTextW returned Unicode string "%S"\n", WindowTextW); @@ -68,7 +68,7 @@ printf("Calling GetWindowTextA\n"); if (! GetWindowTextA(hWnd, WindowTextA, sizeof(WindowTextA) / sizeof(WindowTextA[0]))) { - fprintf(stderr, "GetWindowTextA failed (last error 0x%lu)\n", GetLastError()); + fprintf(stderr, "GetWindowTextA failed (last error 0x%lx)\n", GetLastError()); return 1; } printf("GetWindowTextA returned Ansi string "%s"\n", WindowTextA); @@ -89,7 +89,7 @@ printf("Calling GetWindowTextW\n"); if (! GetWindowTextW(hWnd, WindowTextW, sizeof(WindowTextW) / sizeof(WindowTextW[0]))) { - fprintf(stderr, "GetWindowTextW failed (last error 0x%lu)\n", GetLastError()); + fprintf(stderr, "GetWindowTextW failed (last error 0x%lx)\n", GetLastError()); return 1; } printf("GetWindowTextW returned Unicode string "%S"\n", WindowTextW); @@ -104,7 +104,7 @@ printf("Calling GetWindowTextW\n"); if (! GetWindowTextW(hWnd, WindowTextW, sizeof(WindowTextW) / sizeof(WindowTextW[0]))) { - fprintf(stderr, "GetWindowTextW failed (last error 0x%lu)\n", GetLastError()); + fprintf(stderr, "GetWindowTextW failed (last error 0x%lx)\n", GetLastError()); return 1; } printf("GetWindowTextW returned Unicode string "%S"\n", WindowTextW);
Added: trunk/rostests/win32/CMakeLists.txt URL: http://svn.reactos.org/svn/reactos/trunk/rostests/win32/CMakeLists.txt?rev=6... ============================================================================== --- trunk/rostests/win32/CMakeLists.txt (added) +++ trunk/rostests/win32/CMakeLists.txt [iso-8859-1] Sat Oct 3 22:21:19 2015 @@ -0,0 +1 @@ +add_subdirectory(kernel32)
Propchange: trunk/rostests/win32/CMakeLists.txt ------------------------------------------------------------------------------ svn:eol-style = native
Propchange: trunk/rostests/win32/CMakeLists.txt ------------------------------------------------------------------------------ svn:mime-type = text/plain
Modified: trunk/rostests/win32/kernel32/queuetest/queuetest.c URL: http://svn.reactos.org/svn/reactos/trunk/rostests/win32/kernel32/queuetest/q... ============================================================================== --- trunk/rostests/win32/kernel32/queuetest/queuetest.c [iso-8859-1] (original) +++ trunk/rostests/win32/kernel32/queuetest/queuetest.c [iso-8859-1] Sat Oct 3 22:21:19 2015 @@ -15,7 +15,7 @@ #define TestProc(n) \ DWORD CALLBACK TestProc##n(void *ctx)\ {\ - printf("TestProc%d thread 0x%lu context 0x%p\n", n, GetCurrentThreadId(), ctx);\ + printf("TestProc%d thread 0x%lx context 0x%p\n", n, GetCurrentThreadId(), ctx);\ return 0;\ }