Commit 7cb65f44 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

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

Fixes an intermittent testbot failure. Signed-off-by: 's avatarAlex Henrie <alexhenrie24@gmail.com> Signed-off-by: 's avatarPiotr Caban <piotr@codeweavers.com> Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
parent 98d88f22
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment