rcuja tests: return errors
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 31 May 2013 16:31:25 +0000 (12:31 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 31 May 2013 16:31:25 +0000 (12:31 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
tests/test_urcu_ja.c

index af6ba08f133fd3161a2b013518a167a01f6567dc..85404845800ff8e47458b85728f5303cedda9fd8 100644 (file)
@@ -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
        /*
This page took 0.025683 seconds and 4 git commands to generate.