Piotr Caban : msvcp140_atomic_wait/tests: Build without -DWINE_NO_LONG_TYPES.

Alexandre Julliard julliard at winehq.org
Mon Feb 14 15:41:28 CST 2022


Module: wine
Branch: master
Commit: 7bbb7042943c5dc080cfc74bc9d6cced7dc45dd3
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7bbb7042943c5dc080cfc74bc9d6cced7dc45dd3

Author: Piotr Caban <piotr at codeweavers.com>
Date:   Fri Feb 11 23:04:52 2022 +0100

msvcp140_atomic_wait/tests: Build without -DWINE_NO_LONG_TYPES.

Signed-off-by: Piotr Caban <piotr at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/msvcp140_atomic_wait/tests/Makefile.in            |  1 -
 dlls/msvcp140_atomic_wait/tests/msvcp140_atomic_wait.c | 14 +++++++-------
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/dlls/msvcp140_atomic_wait/tests/Makefile.in b/dlls/msvcp140_atomic_wait/tests/Makefile.in
index 30f1c7c2f88..7f58d06d8f3 100644
--- a/dlls/msvcp140_atomic_wait/tests/Makefile.in
+++ b/dlls/msvcp140_atomic_wait/tests/Makefile.in
@@ -1,4 +1,3 @@
-EXTRADEFS = -DWINE_NO_LONG_TYPES
 TESTDLL = msvcp140_atomic_wait.dll
 
 C_SRCS = \
diff --git a/dlls/msvcp140_atomic_wait/tests/msvcp140_atomic_wait.c b/dlls/msvcp140_atomic_wait/tests/msvcp140_atomic_wait.c
index 3a971bb4ce3..42fefc4db03 100644
--- a/dlls/msvcp140_atomic_wait/tests/msvcp140_atomic_wait.c
+++ b/dlls/msvcp140_atomic_wait/tests/msvcp140_atomic_wait.c
@@ -56,7 +56,7 @@ static void test___std_parallel_algorithms_hw_threads(void)
 
     GetSystemInfo(&si);
     nthr = p___std_parallel_algorithms_hw_threads();
-    ok(nthr == si.dwNumberOfProcessors, "expected %u, got %u\n", si.dwNumberOfProcessors, nthr);
+    ok(nthr == si.dwNumberOfProcessors, "expected %lu, got %u\n", si.dwNumberOfProcessors, nthr);
 }
 
 static PTP_WORK cb_work;
@@ -102,7 +102,7 @@ static void test_threadpool_work(void)
     p___std_submit_threadpool_work(work);
     p___std_wait_for_threadpool_work_callbacks(work, FALSE);
     p___std_close_threadpool_work(work);
-    ok(workcalled == 1, "expected work to be called once, got %d\n", workcalled);
+    ok(workcalled == 1, "expected work to be called once, got %ld\n", workcalled);
     ok(cb_work == work, "expected %p, got %p\n", work, cb_work);
     ok(cb_context == &workcalled, "expected %p, got %p\n", &workcalled, cb_context);
 
@@ -113,7 +113,7 @@ static void test_threadpool_work(void)
     p___std_bulk_submit_threadpool_work(work, 13);
     p___std_wait_for_threadpool_work_callbacks(work, FALSE);
     p___std_close_threadpool_work(work);
-    ok(workcalled == 13, "expected work to be called 13 times, got %d\n", workcalled);
+    ok(workcalled == 13, "expected work to be called 13 times, got %ld\n", workcalled);
 
     workcalled = 0;
     work = p___std_create_threadpool_work(threadpool_workcallback, &workcalled, NULL);
@@ -121,7 +121,7 @@ static void test_threadpool_work(void)
     p___std_bulk_submit_threadpool_work(work, 0);
     p___std_wait_for_threadpool_work_callbacks(work, FALSE);
     p___std_close_threadpool_work(work);
-    ok(workcalled == 0, "expected no work, got %d\n", workcalled);
+    ok(workcalled == 0, "expected no work, got %ld\n", workcalled);
 
     /* test with environment */
     cb_event = CreateEventW(NULL, TRUE, FALSE, NULL);
@@ -136,7 +136,7 @@ static void test_threadpool_work(void)
     p___std_close_threadpool_work(work);
     ret = WaitForSingleObject(cb_event, 1000);
     ok(ret == WAIT_OBJECT_0, "expected finalization callback to be called\n");
-    ok(workcalled == 2, "expected work to be called twice, got %d\n", workcalled);
+    ok(workcalled == 2, "expected work to be called twice, got %ld\n", workcalled);
     CloseHandle(cb_event);
 
     /* test with environment version 3 */
@@ -147,7 +147,7 @@ static void test_threadpool_work(void)
     work = p___std_create_threadpool_work(threadpool_workcallback, &workcalled,
                                           (TP_CALLBACK_ENVIRON *)&environment3);
     gle = GetLastError();
-    ok(gle == 0xdeadbeef, "expected 0xdeadbeef, got %x\n", gle);
+    ok(gle == 0xdeadbeef, "expected 0xdeadbeef, got %lx\n", gle);
     ok(!!work, "failed to create threadpool_work\n");
     p___std_close_threadpool_work(work);
 
@@ -158,7 +158,7 @@ static void test_threadpool_work(void)
     work = p___std_create_threadpool_work(threadpool_workcallback, &workcalled,
                                           (TP_CALLBACK_ENVIRON *)&environment3);
     gle = GetLastError();
-    ok(gle == ERROR_INVALID_PARAMETER, "expected %d, got %d\n", ERROR_INVALID_PARAMETER, gle);
+    ok(gle == ERROR_INVALID_PARAMETER, "expected %d, got %ld\n", ERROR_INVALID_PARAMETER, gle);
     ok(!work, "expected failure\n");
 }
 




More information about the wine-cvs mailing list