Alex Henrie : msvcp120/tests: Don't check for handle equality in _Thrd_current tests.

Alexandre Julliard julliard at winehq.org
Wed Dec 8 15:46:30 CST 2021


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

Author: Alex Henrie <alexhenrie24 at gmail.com>
Date:   Tue Dec  7 23:40:56 2021 -0700

msvcp120/tests: Don't check for handle equality in _Thrd_current tests.

Fixes an intermittent testbot failure.

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

---

 dlls/msvcp120/tests/msvcp120.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/dlls/msvcp120/tests/msvcp120.c b/dlls/msvcp120/tests/msvcp120.c
index 495ee9dd6fb..6bc636c4b1f 100644
--- a/dlls/msvcp120/tests/msvcp120.c
+++ b/dlls/msvcp120/tests/msvcp120.c
@@ -2093,8 +2093,9 @@ static void test_thrd(void)
     tb = p__Thrd_current();
     ok(ta.id == tb.id, "got a %d b %d\n", ta.id, tb.id);
     ok(ta.id == GetCurrentThreadId(), "expected %d, got %d\n", GetCurrentThreadId(), ta.id);
-    /* these can be different if new threads are created at same time */
-    ok(ta.hnd == tb.hnd, "got a %p b %p\n", ta.hnd, tb.hnd);
+    /* the handles can be different if new threads are created at same time */
+    ok(ta.hnd != NULL, "handle a is NULL\n");
+    ok(tb.hnd != NULL, "handle b is NULL\n");
     ok(!CloseHandle(ta.hnd), "handle %p not closed\n", ta.hnd);
     ok(!CloseHandle(tb.hnd), "handle %p not closed\n", tb.hnd);
 




More information about the wine-cvs mailing list