diff options
author | Mike Blumenkrantz <zmike@osg.samsung.com> | 2018-04-09 13:36:54 +0200 |
---|---|---|
committer | Stefan Schmidt <stefan@osg.samsung.com> | 2018-04-10 11:28:01 +0200 |
commit | 853e2c43cab2f2a5e3211705def20f868e297bc2 (patch) | |
tree | fb75e8427cef4dfa567509f1c7dda818ad85688e | |
parent | c45f1346807ad8347d1911fb0475daa5e6aea29a (diff) | |
download | efl-853e2c43cab2f2a5e3211705def20f868e297bc2.tar.gz |
tests: remove random usleeps from ecore thread queue tests
Summary:
fix T6851
Depends on D5881
Reviewers: stefan_schmidt
Subscribers: cedric
Maniphest Tasks: T6851
Differential Revision: https://phab.enlightenment.org/D5882
-rw-r--r-- | src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c b/src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c index 13120e4f49..ef08354689 100644 --- a/src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c +++ b/src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c @@ -33,7 +33,6 @@ th1_do(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED) Msg *msg; void *ref; - usleep((rand() % 10) * 1000); msg = eina_thread_queue_send(thq1, sizeof(Msg), &ref); if (!msg) fail(); msg->value = val; @@ -57,7 +56,6 @@ th2_do(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED) msg = eina_thread_queue_wait(thq1, &ref); if (!msg) fail(); val = msg->value; - usleep((rand() % 20) * 1000); eina_thread_queue_wait_done(thq1, ref); msg = eina_thread_queue_send(thq2, sizeof(Msg), &ref); @@ -93,7 +91,6 @@ EFL_START_TEST(ecore_test_ecore_thread_eina_thread_queue_t1) fail(); } val = msg->value; - usleep((rand() % 30) * 1000); eina_thread_queue_wait_done(thq2, ref); if (val == 1000) break; } @@ -377,7 +374,6 @@ th51_do(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED) Msg5 *msg; void *ref; - usleep((rand() % 10) * 1000); msg = eina_thread_queue_send(thq1, sizeof(Msg5), &ref); msg->value = val; eina_thread_queue_send_done(thq1, ref); @@ -401,7 +397,6 @@ th52_do(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED) msg = eina_thread_queue_wait(thq1, &ref); if (!msg) fail(); val = msg->value; - usleep((rand() % 20) * 1000); eina_thread_queue_wait_done(thq1, ref); msg = eina_thread_queue_send(thq2, sizeof(Msg5), &ref); @@ -442,14 +437,12 @@ EFL_START_TEST(ecore_test_ecore_thread_eina_thread_queue_t5) fail(); } val = msg->value; - usleep((rand() % 10) * 1000); eina_thread_queue_wait_done(thq2, ref); if (val == 1100) break; } else { if (DEBUG) printf("V: none!\n"); - usleep((rand() % 10) * 1000); } } @@ -489,7 +482,6 @@ th61_do(void *data EINA_UNUSED, Ecore_Thread *th EINA_UNUSED) fail_if(!msg); msg->value = val; eina_thread_queue_send_done(thq1, ref); - usleep(1); } eina_semaphore_release(&th6_sem, 1); |