[lttng-dev] [PATCH lttng-tools] Fix: test code assumes that child process is schedule to run before parent
Anders Wallin
wallinux at gmail.com
Wed Mar 31 14:56:24 EDT 2021
the following tests fails on arm64
- test_event_vpid_tracker ust 0 "${EVENT_NAME}"
- test_event_vpid_track_untrack ust 0 "${EVENT_NAME}"
- test_event_pid_tracker ust 0 "${EVENT_NAME}"
- test_event_pid_track_untrack ust 0 "${EVENT_NAME}"
Signed-off-by: Anders Wallin <wallinux at gmail.com>
---
tests/regression/tools/tracker/test_event_tracker | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/tests/regression/tools/tracker/test_event_tracker b/tests/regression/tools/tracker/test_event_tracker
index 711690af..649c7e61 100755
--- a/tests/regression/tools/tracker/test_event_tracker
+++ b/tests/regression/tools/tracker/test_event_tracker
@@ -5,7 +5,7 @@
#
# SPDX-License-Identifier: GPL-2.0-only
-TEST_DESC="LTTng - Event traker test"
+TEST_DESC="LTTng - Event tracker test"
CURDIR=$(dirname "$0")/
TESTDIR="$CURDIR/../../.."
@@ -42,6 +42,8 @@ function prepare_ust_app
$TESTAPP_BIN -i $NR_ITER -w $NR_USEC_WAIT -a "$AFTER_FIRST_PATH" -b "$BEFORE_LAST_PATH" &
CHILD_PID=$!
+ # voluntary context switch to start $TESTAPP_BIN
+ sleep 0.1
}
function trace_ust_app
--
2.31.1
More information about the lttng-dev
mailing list