Fix sporadic failure of threadqueue test

This commit is contained in:
Nils O. Selåsdal
2013-03-02 22:00:40 +01:00
parent 54678cf94b
commit e1bd10208e
+1 -1
View File
@@ -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);