cedric pushed a commit to branch master. http://git.enlightenment.org/core/efl.git/commit/?id=9ee7f46eb358bef952a2c0df3196c5d1b86687d1
commit 9ee7f46eb358bef952a2c0df3196c5d1b86687d1 Author: pierre lamot <pierre.la...@openwide.fr> Date: Wed Jan 21 11:27:56 2015 +0100 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 <ced...@osg.samsung.com> --- src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c | 4 ++++ 1 file changed, 4 insertions(+) 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 dea5ebb..616cb72 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) eina_spinlock_release(&msgnum_lock); break; } + else if (msgnum > 10000) + { + fail(); + } eina_spinlock_release(&msgnum_lock); } printf("msg multi to 1 ok\n"); --