Tests: Fix flacky clock-plugin test
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 13 Aug 2015 18:37:14 +0000 (14:37 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 13 Aug 2015 18:37:14 +0000 (14:37 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
tests/regression/ust/clock-override/Makefile.am
tests/regression/ust/clock-override/run-clock-override [deleted file]
tests/regression/ust/clock-override/test_clock_override

index a656548de35c6cbff5abbf36777a94b84d38a06f..95065e0ed1ba6b580395be72521dcd1f3f021c2f 100644 (file)
@@ -19,8 +19,8 @@ if LTTNG_TOOLS_BUILD_WITH_LIBC_DL
 lttng_ust_clock_override_test_la_LIBADD = -lc
 endif
 
-noinst_SCRIPTS = test_clock_override run-clock-override
-EXTRA_DIST = test_clock_override run-clock-override
+noinst_SCRIPTS = test_clock_override
+EXTRA_DIST = test_clock_override
 
 all-local:
        @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
diff --git a/tests/regression/ust/clock-override/run-clock-override b/tests/regression/ust/clock-override/run-clock-override
deleted file mode 100755 (executable)
index d771ecf..0000000
+++ /dev/null
@@ -1,13 +0,0 @@
-#!/bin/sh
-
-# launch with: run-clock-override progname args
-DIR=$(dirname $0)
-DIR=$(readlink -f $DIR)
-
-if [ -x "$DIR/.libs/lttng-ust-clock-override-test.so" ]; then
-       ret=`LTTNG_UST_CLOCK_PLUGIN="$DIR/.libs/lttng-ust-clock-override-test.so" $@`
-       exit $ret
-else
-       echo "Clock-override missing shared object"
-       exit $1
-fi
index 445d00f9d48687741a27970b586973b99b61b917..d462926f8d5d26ecee340159e4a9194772b621dd 100755 (executable)
@@ -23,7 +23,6 @@ SESSION_NAME="clock_override"
 TESTAPP_PATH="$TESTDIR/utils/testapp"
 TESTAPP_NAME="gen-ust-events"
 TESTAPP_BIN="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
-TESTAPP_WRAPPER="run-getcpu-override"
 NUM_EVENT=256
 EVENT_NAME="tp:tptest"
 LTTNG_UST_CLOCK_PLUGIN_SO="lttng-ust-clock-override-test.so"
@@ -147,11 +146,11 @@ function test_getcpu_override_timestamp()
        diag "Plugin enabled"
        export LTTNG_UST_CLOCK_PLUGIN=$CURDIR/.libs/$LTTNG_UST_CLOCK_PLUGIN_SO
        start_lttng_sessiond
-       unset LTTNG_UST_CLOCK_PLUGIN
        create_lttng_session_ok $SESSION_NAME $TRACE_PATH
        enable_ust_lttng_event_ok $SESSION_NAME "$EVENT_NAME"
        start_lttng_tracing_ok $SESSION_NAME
        run_app
+       unset LTTNG_UST_CLOCK_PLUGIN
        stop_lttng_tracing_ok $SESSION_NAME
        destroy_lttng_session_ok $SESSION_NAME
        stop_lttng_sessiond
This page took 0.026876 seconds and 4 git commands to generate.