Fix for tc_libc_sleep fail issue
authorLokesh B V <lokesh.bv@partner.samsung.com>
Wed, 16 Aug 2017 19:27:41 +0000 (00:57 +0530)
committerLokesh B V <lokesh.bv@partner.samsung.com>
Thu, 17 Aug 2017 05:23:41 +0000 (10:53 +0530)
commit6a9040b21f38fc345607ad8545603e62c85b2345
tree83b8ac0e11d9a77fe02d594f7583f633839f0fd8
parent50c4f84d21e4b015757dff63b7bead636b1be27f
Fix for tc_libc_sleep fail issue

The tx and rx tasks are used in tc_libc_unistd_pipe are alive and
wakes up the kernel_tc_main task while testing libc sleep.
So tc of libc sleep is failed.
Using 'waitpid' would solve the above issue, but 'waitpid' depends on CONFIG_SCHED_WAITPID.
And if CONFIG_SCHED_WAITPID is disabled we cannot test tc_libc_unistd_pipe.
So It's better to use pthreads instead of tasks.

Signed-off-by: Lokesh B V <lokesh.bv@partner.samsung.com>
apps/examples/testcase/le_tc/kernel/tc_libc_unistd.c