projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tests: Correct use of taskset in snapshot tests
[lttng-tools.git]
/
tests
/
regression
/
tools
/
notification
/
test_notification_ust_error
diff --git
a/tests/regression/tools/notification/test_notification_ust_error
b/tests/regression/tools/notification/test_notification_ust_error
index 53c3959a273d94922bd472d63f398ca29cc58946..e3b5e9859bfcf837588e2000471f7b74a02a7e33 100755
(executable)
--- a/
tests/regression/tools/notification/test_notification_ust_error
+++ b/
tests/regression/tools/notification/test_notification_ust_error
@@
-7,21
+7,28
@@
CURDIR=$(dirname "$0")/
TESTDIR=$CURDIR/../../../
CURDIR=$(dirname "$0")/
TESTDIR=$CURDIR/../../../
-TMPDIR=$(mktemp -d)
TESTAPP_PATH="$TESTDIR/utils/testapp"
GEN_UST_EVENTS_TESTAPP_NAME="gen-ust-events"
GEN_UST_EVENTS_TESTAPP_BIN="$TESTAPP_PATH/$GEN_UST_EVENTS_TESTAPP_NAME/$GEN_UST_EVENTS_TESTAPP_NAME"
TESTAPP_PATH="$TESTDIR/utils/testapp"
GEN_UST_EVENTS_TESTAPP_NAME="gen-ust-events"
GEN_UST_EVENTS_TESTAPP_BIN="$TESTAPP_PATH/$GEN_UST_EVENTS_TESTAPP_NAME/$GEN_UST_EVENTS_TESTAPP_NAME"
-TESTAPP_STATE_PATH=$(mktemp -u
"$TMPDIR/application_state.XXXX
XXXXXX")
+TESTAPP_STATE_PATH=$(mktemp -u
-t "tmp.test_notif_ust_error_application_state.
XXXXXX")
# shellcheck source=../../../utils/utils.sh
source "$TESTDIR/utils/utils.sh"
# shellcheck source=../../../utils/utils.sh
source "$TESTDIR/utils/utils.sh"
+# shellcheck source=./util_event_generator.sh
+source "$CURDIR/util_event_generator.sh"
function test_basic_error_path
{
function test_basic_error_path
{
- $CURDIR/notification 1 LTTNG_DOMAIN_UST
+ ust_event_generator_run_once_per_transition "$GEN_UST_EVENTS_TESTAPP_BIN" "$TESTAPP_STATE_PATH" 5 5 &
+ APP_PID=$!
+
+ "$CURDIR/notification" 1 LTTNG_DOMAIN_UST $APP_PID "$TESTAPP_STATE_PATH"
+
+ kill -SIGUSR2 $APP_PID
+ wait $APP_PID 2> /dev/null
}
start_lttng_sessiond_notap
}
start_lttng_sessiond_notap
@@
-29,3
+36,5
@@
start_lttng_sessiond_notap
test_basic_error_path
stop_lttng_sessiond_notap
test_basic_error_path
stop_lttng_sessiond_notap
+
+rm -f $TESTAPP_STATE_PATH
This page took
0.025402 seconds
and
4
git commands to generate.