Fix: tests: skip tests on static build
[lttng-tools.git] / tests / regression / ust / clock-override / test_clock_override
index f4a5feaee3f7151177a6fe6ed3b33458d7dd4503..722e7315849f6763893a46215f931d736582d18b 100755 (executable)
@@ -49,10 +49,6 @@ NUM_TESTS=33
 
 source $TESTDIR/utils/utils.sh
 
-if [ ! -x "$CURDIR/$LIBS_DIR/$LTTNG_UST_CLOCK_PLUGIN_SO" ]; then
-       BAIL_OUT "No shared object generated"
-fi
-
 # MUST set TESTDIR before calling those functions
 function run_app()
 {
@@ -167,6 +163,14 @@ plan_tests $NUM_TESTS
 
 print_test_banner "$TEST_DESC"
 
+if [ -x "$CURDIR/$LIBS_DIR/$LTTNG_UST_CLOCK_PLUGIN_SO" ]; then
+       foundobj=1
+else
+       foundobj=0
+fi
+
+skip $foundobj "No shared object generated. Skipping all tests." $NUM_TESTS && exit 0
+
 TESTS=(
        "test_getcpu_override_metadata"
        "test_getcpu_override_timestamp"
This page took 0.02367 seconds and 4 git commands to generate.