Fix sporadic failure of threadqueue test
This commit is contained in:
@@ -243,10 +243,10 @@ START_TEST (test_thread_queue_timeout2)
|
|||||||
struct thr_msg my_msg;
|
struct thr_msg my_msg;
|
||||||
|
|
||||||
fail_if(uc_thread_queue_init(&queue, 10) != 0);
|
fail_if(uc_thread_queue_init(&queue, 10) != 0);
|
||||||
fail_if(pthread_create(&tid1, NULL, thread_test_thread_queue_timeout2, &queue) != 0);
|
|
||||||
my_msg.b = 12345;
|
my_msg.b = 12345;
|
||||||
my_msg.msg.msgtype = 0;
|
my_msg.msg.msgtype = 0;
|
||||||
fail_if(uc_thread_queue_add(&queue, &my_msg.msg) != 0);
|
fail_if(uc_thread_queue_add(&queue, &my_msg.msg) != 0);
|
||||||
|
fail_if(pthread_create(&tid1, NULL, thread_test_thread_queue_timeout2, &queue) != 0);
|
||||||
|
|
||||||
|
|
||||||
pthread_join(tid1, NULL);
|
pthread_join(tid1, NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user