tests: Fix eina_thread_queue test case 5 & 6
authorJean-Philippe Andre <jp.andre@samsung.com>
Wed, 14 Jun 2017 06:07:28 +0000 (15:07 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Wed, 14 Jun 2017 07:54:15 +0000 (16:54 +0900)
commit44b6eb3e551710019eb437375b6974ecdac4e764
tree76f6d5360244fc9b842e09d38f2d2a952b3e2188
parentf54d891b2c7ef648e8593242b771f782e4655950
tests: Fix eina_thread_queue test case 5 & 6

ecore_test_ecore_thread_eina_thread_queue_t6 failed often for me.
eina_thread_queue_wait() was returning NULL.

I believe this is because the test case ended abruptly without
waiting for the threads to finish. Indeed, both threads tried
hard to reach 10000 messages but it didn't make sense for them
both to reach this value, only one would end there.

This patch adds an exit message sent by thread 1 to the two other
threads, and all threads are waited upon using a single semaphore.

Note: This also renames some functions to match their test case
number.

@raster
src/tests/ecore/ecore_test_ecore_thread_eina_thread_queue.c