projects
/
userspace-rcu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix typo in README.md
[userspace-rcu.git]
/
tests
/
unit
/
test_urcu_multiflavor.c
diff --git
a/tests/unit/test_urcu_multiflavor.c
b/tests/unit/test_urcu_multiflavor.c
index cd573ca8f664b6de5c91d9a60aff3de6c059e2a2..192884eb239b70de1468da954eed609b15523338 100644
(file)
--- a/
tests/unit/test_urcu_multiflavor.c
+++ b/
tests/unit/test_urcu_multiflavor.c
@@
-23,28
+23,18
@@
#include <stdlib.h>
#include "test_urcu_multiflavor.h"
#include <stdlib.h>
#include "test_urcu_multiflavor.h"
+#include "tap.h"
+
int main(int argc, char **argv)
{
int main(int argc, char **argv)
{
-
int ret
;
+
plan_tests(5)
;
- ret = test_mf_memb();
- if (ret)
- goto failure;
- ret = test_mf_mb();
- if (ret)
- goto failure;
- ret = test_mf_signal();
- if (ret)
- goto failure;
- ret = test_mf_qsbr();
- if (ret)
- goto failure;
- ret = test_mf_bp();
- if (ret)
- goto failure;
+ ok1(!test_mf_memb());
- exit(EXIT_SUCCESS);
+ ok1(!test_mf_mb());
+ ok1(!test_mf_signal());
+ ok1(!test_mf_qsbr());
+ ok1(!test_mf_bp());
-failure:
- exit(EXIT_FAILURE);
+ return exit_status();
}
}
This page took
0.023556 seconds
and
4
git commands to generate.