projects
/
urcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rcuja tests: return errors
[urcu.git]
/
tests
/
test_urcu_ja.c
diff --git
a/tests/test_urcu_ja.c
b/tests/test_urcu_ja.c
index af6ba08f133fd3161a2b013518a167a01f6567dc..85404845800ff8e47458b85728f5303cedda9fd8 100644
(file)
--- 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 (sanity_test) {
ret = do_sanity_test();
- if (ret) {
- fprintf(stderr, "Error in sanity test\n");
- }
} else {
} else {
- do_mt_test();
+
ret =
do_mt_test();
}
rcu_unregister_thread();
free_all_cpu_call_rcu_data();
}
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
/*
#if 0
/*
This page took
0.022952 seconds
and
4
git commands to generate.