diff mbox

[API-NEXT,PATCHv4,09/10] validation: common: return number of threads created

Message ID 1437579989-1241-10-git-send-email-stuart.haslam@linaro.org
State Accepted
Commit 1a56ad5876d266dcf780f873fabf9dd6052df252
Headers show

Commit Message

Stuart Haslam July 22, 2015, 3:46 p.m. UTC
odph_linux_pthread_create() now returns the number of threads created,
so modify odp_cunit_thread_create() to do the same.

Signed-off-by: Stuart Haslam <stuart.haslam@linaro.org>
Reviewed-by: Christophe Milard <christophe.milard@linaro.org>
---
 test/validation/common/odp_cunit_common.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/test/validation/common/odp_cunit_common.c b/test/validation/common/odp_cunit_common.c
index 807325b..d995ad3 100644
--- a/test/validation/common/odp_cunit_common.c
+++ b/test/validation/common/odp_cunit_common.c
@@ -29,10 +29,9 @@  int odp_cunit_thread_create(void *func_ptr(void *), pthrd_arg *arg)
 
 	/* Create and init additional threads */
 	odp_cpumask_def_worker(&cpumask, arg->numthrds);
-	odph_linux_pthread_create(thread_tbl, &cpumask, func_ptr,
-				  (void *)arg);
 
-	return 0;
+	return odph_linux_pthread_create(thread_tbl, &cpumask, func_ptr,
+					 (void *)arg);
 }
 
 /** exit from test thread */