summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpierre lamot <pierre.lamot@openwide.fr>2015-01-21 11:27:56 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-05 16:38:06 +0100
commit9ee7f46eb358bef952a2c0df3196c5d1b86687d1 (patch)
tree895b0f4c66fc999577fe6534364ab3c310251d9d
parent6fd31ab5521e082a09c60183bad0788c98d4c776 (diff)
ecore: check that a test doesn't enter in an infitie loop.
check that ecore_test_ecore_thread_eina_thread_queue_t6 doesn't enter in an infinite loop if something goes wrong, if the main thread doesn't receive the message number 10000 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c4
1 files changed, 4 insertions, 0 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 dea5ebbfc1..616cb72eb8 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
@@ -509,6 +509,10 @@ START_TEST(ecore_test_ecore_thread_eina_thread_queue_t6)
509 eina_spinlock_release(&msgnum_lock); 509 eina_spinlock_release(&msgnum_lock);
510 break; 510 break;
511 } 511 }
512 else if (msgnum > 10000)
513 {
514 fail();
515 }
512 eina_spinlock_release(&msgnum_lock); 516 eina_spinlock_release(&msgnum_lock);
513 } 517 }
514 printf("msg multi to 1 ok\n"); 518 printf("msg multi to 1 ok\n");