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:
pierre lamot 2015-01-21 11:27:56 +01:00 committed by Cedric BAIL
parent 6fd31ab552
commit 9ee7f46eb3
1 changed files with 4 additions and 0 deletions

View File

@ -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");