forked from enlightenment/efl
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>
This commit is contained in:
parent
6fd31ab552
commit
9ee7f46eb3
|
@ -509,6 +509,10 @@ START_TEST(ecore_test_ecore_thread_eina_thread_queue_t6)
|
|||
eina_spinlock_release(&msgnum_lock);
|
||||
break;
|
||||
}
|
||||
else if (msgnum > 10000)
|
||||
{
|
||||
fail();
|
||||
}
|
||||
eina_spinlock_release(&msgnum_lock);
|
||||
}
|
||||
printf("msg multi to 1 ok\n");
|
||||
|
|
Loading…
Reference in New Issue