X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=tests%2Fregression%2Fust%2Fnamespaces%2Ftest_ns_contexts;h=be038eb28ecf734255fcf62ada37e56d57ec50fd;hp=6f0e504722eed673b490150fcf1234d923693c85;hb=33e557114a2ba28e26e220a833e8a449c78b8b65;hpb=9d16b343fb9e781fc8d8fa3c448a3f382306dd33 diff --git a/tests/regression/ust/namespaces/test_ns_contexts b/tests/regression/ust/namespaces/test_ns_contexts index 6f0e50472..be038eb28 100755 --- a/tests/regression/ust/namespaces/test_ns_contexts +++ b/tests/regression/ust/namespaces/test_ns_contexts @@ -12,12 +12,12 @@ TESTDIR=$CURDIR/../../.. TESTAPP_PATH="$TESTDIR/utils/testapp" TESTAPP_NAME="gen-ust-events" TESTAPP_BIN="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME" -NUM_EVENT=10000 +NUM_EVENT=1000 EVENT_NAME="tp:tptest" TESTS_PER_NS=13 -NUM_TESTS=$((TESTS_PER_NS * 7)) +NUM_TESTS=$((TESTS_PER_NS * 8)) source "$TESTDIR/utils/utils.sh" @@ -35,7 +35,6 @@ function test_ns() local session_name="${ns}_ns" local chan_name="${ns}_ns" local context_name="${ns}_ns" - local trace_path local ns_inode @@ -45,12 +44,12 @@ function test_ns() return fi + trace_path=$(mktemp --tmpdir -d -t "tmp.${FUNCNAME[0]}_trace_path.XXXXXX") + # Get the current ns inode number ns_inode=$(stat -c '%i' -L "/proc/$$/ns/$ns") ok $? "Get current $ns namespace inode: $ns_inode" - trace_path=$(mktemp -d) - start_lttng_sessiond create_lttng_session_ok "$session_name" "$trace_path" @@ -89,5 +88,6 @@ test_ns ipc test_ns mnt test_ns net test_ns pid +test_ns time test_ns user test_ns uts