From bd255f16c1d74189a875b6eedc5ed55e98ffd2d1 Mon Sep 17 00:00:00 2001 From: "jc_.kim" Date: Mon, 2 Jan 2017 16:52:46 +0900 Subject: [PATCH] Modify inappropritate condition check for task_create in tc_task task_create doesn't return the errno. when failed to create task, it returns ERROR and sets errno. Change-Id: I33750705143b6cbdd8c40510470cdaf5adf8615d --- apps/examples/testcase/le_tc/kernel/tc_task.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/examples/testcase/le_tc/kernel/tc_task.c b/apps/examples/testcase/le_tc/kernel/tc_task.c index d8fca72..06388ab 100644 --- a/apps/examples/testcase/le_tc/kernel/tc_task.c +++ b/apps/examples/testcase/le_tc/kernel/tc_task.c @@ -473,7 +473,7 @@ static void tc_task_on_exit(void) g_callback = false; pid = task_create("tc_on_exit", SCHED_PRIORITY_DEFAULT, 2048, onexit_task, (char *const *)NULL); - if (pid == ENOMEM || pid < 0) { + if (pid < 0) { printf("tc_task_on_exit task_create FAIL, Error No: %d %d\n", errno, pid); total_fail++; RETURN_ERR; -- 2.7.4