Skip to content

Commit 51873b1

Browse files
committed
tests: Fix check loop mt test
test_th was accesed both by main thread and loop_timer thread resulting in failure. Fix is to access test_tht in loop_timer thread. Signed-off-by: Jan Friesse <[email protected]>
1 parent 5e3e5ae commit 51873b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/check_loop.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,7 @@ static void *loop_timer_thread(void *arg)
448448
res = qb_loop_timer_add(l, QB_LOOP_LOW, 5*QB_TIME_NS_IN_MSEC, l, one_shot_tmo, &test_tht);
449449
ck_assert_int_eq(res, 0);
450450

451-
res = qb_loop_timer_is_running(l, test_th);
451+
res = qb_loop_timer_is_running(l, test_tht);
452452
ck_assert_int_eq(res, QB_TRUE);
453453

454454
sleep(5);

0 commit comments

Comments
 (0)