Skip the tests if the rseq syscall is unavailable
[librseq.git] / tests / run_param_test.tap
index 7ba027d28d0aad3a641ef1dad832a6bfb5613dbe..7501a6c0c13ff638ea9eaf8bdd342ad67fff4c21 100755 (executable)
@@ -71,7 +71,12 @@ function do_tests_inject()
 }
 
 
-plan_tests $(( 2 * 7 * 37 ))
+"$RSEQ_TESTS_BUILDDIR"/param_test -c
+if [[ $? == 2 ]]; then
+       plan_skip_all "The rseq syscall is unavailable"
+else
+       plan_tests $(( 2 * 7 * 37 ))
+fi
 
 diag "Default parameters"
 do_tests
This page took 0.023389 seconds and 4 git commands to generate.