From: Mathieu Desnoyers Date: Fri, 31 May 2013 16:31:25 +0000 (-0400) Subject: rcuja tests: return errors X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=4bea9b8d1f7e8bb0c0c2f6657236f5b4166e56d4;p=userspace-rcu.git rcuja tests: return errors Signed-off-by: Mathieu Desnoyers --- diff --git a/tests/test_urcu_ja.c b/tests/test_urcu_ja.c index af6ba08..8540484 100644 --- a/tests/test_urcu_ja.c +++ b/tests/test_urcu_ja.c @@ -999,16 +999,17 @@ int main(int argc, char **argv) if (sanity_test) { ret = do_sanity_test(); - if (ret) { - fprintf(stderr, "Error in sanity test\n"); - } } else { - do_mt_test(); + ret = do_mt_test(); } rcu_unregister_thread(); free_all_cpu_call_rcu_data(); - return 0; + + if (ret) { + printf("Test ended with error: %d\n", ret); + } + return ret; #if 0 /*