aboutsummaryrefslogtreecommitdiff
path: root/helper/test
diff options
context:
space:
mode:
authorPetri Savolainen <petri.savolainen@nokia.com>2016-06-09 15:55:57 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2016-06-15 12:07:05 +0300
commit69717806018f61af84645ff458e3dc69a13d747e (patch)
tree1a173dec130c1674655375f1d48519bbc2c7d5d3 /helper/test
parentb78d235b8fe23b423bf6e7a3c65abbfb7efa4af8 (diff)
helper: linux: correct pthread join retval check
Helper defines that pthread exit status is NULL on error, but checks for != NULL. Both NULL and !NULL were returned on failure. Defined that both process and pthread return !0 (!NULL) on failure. Signed-off-by: Petri Savolainen <petri.savolainen@nokia.com> Reviewed-and-tested-by: Bill Fischofer <bill.fischofer@linaro.org> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
Diffstat (limited to 'helper/test')
-rw-r--r--helper/test/thread.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/test/thread.c b/helper/test/thread.c
index b290753bb..8268d9fee 100644
--- a/helper/test/thread.c
+++ b/helper/test/thread.c
@@ -17,7 +17,7 @@ static void *worker_fn(void *arg TEST_UNUSED)
/* depend on the odp helper to call odp_term_local */
- return 0;
+ return NULL;
}
/* Create additional dataplane threads */