tests: Convert unit tests to TAP
[urcu.git] / tests / unit / test_urcu_multiflavor.c
index cd573ca8f664b6de5c91d9a60aff3de6c059e2a2..192884eb239b70de1468da954eed609b15523338 100644 (file)
 #include <stdlib.h>
 #include "test_urcu_multiflavor.h"
 
+#include "tap.h"
+
 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.022887 seconds and 4 git commands to generate.