projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: test_mi test
[lttng-tools.git]
/
tests
/
regression
/
tools
/
tracefile-limits
/
test_tracefile_size
diff --git
a/tests/regression/tools/tracefile-limits/test_tracefile_size
b/tests/regression/tools/tracefile-limits/test_tracefile_size
index 99301b59d4e624b5c01e8dd84401509c35559bbd..9fe4637e6e19f167172cfd7f3caf8c1e82acdc02 100755
(executable)
--- a/
tests/regression/tools/tracefile-limits/test_tracefile_size
+++ b/
tests/regression/tools/tracefile-limits/test_tracefile_size
@@
-26,7
+26,7
@@
TESTAPP_PATH="$TESTDIR/utils/testapp"
TESTAPP_NAME="gen-ust-events"
TESTAPP_BIN="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
TESTAPP_NAME="gen-ust-events"
TESTAPP_BIN="$TESTAPP_PATH/$TESTAPP_NAME/$TESTAPP_NAME"
-NUM_TESTS=4
7
+NUM_TESTS=4
2
source $TESTDIR/utils/utils.sh
source $TESTDIR/utils/utils.sh
@@
-34,14
+34,6
@@
if [ ! -x "$TESTAPP_BIN" ]; then
BAIL_OUT "No UST events binary detected."
fi
BAIL_OUT "No UST events binary detected."
fi
-function wait_apps
-{
- while [ -n "$(pidof $TESTAPP_NAME)" ]; do
- sleep 0.5
- done
- pass "Wait for applications to end"
-}
-
function enable_lttng_channel_size_limit ()
{
sess_name="$1"
function enable_lttng_channel_size_limit ()
{
sess_name="$1"
@@
-53,7
+45,7
@@
function enable_lttng_channel_size_limit ()
test_name+="$tracefile_size_limit bytes tracefile limit"
$TESTDIR/../src/bin/lttng/$LTTNG_BIN enable-channel \
test_name+="$tracefile_size_limit bytes tracefile limit"
$TESTDIR/../src/bin/lttng/$LTTNG_BIN enable-channel \
- -u $channel_name -s $sess_name \
+ -u $channel_name -s $sess_name
--buffers-pid
\
-C $tracefile_size_limit >/dev/null 2>&1
ok $? "$test_name"
-C $tracefile_size_limit >/dev/null 2>&1
ok $? "$test_name"
@@
-108,7
+100,7
@@
function test_tracefile_size_limit ()
diag "Test tracefile size limit : $size_limit bytes"
diag "Test tracefile size limit : $size_limit bytes"
- create_lttng_session $session_name $trace_path
+ create_lttng_session
_ok
$session_name $trace_path
enable_lttng_channel_size_limit \
$session_name $channel_name $size_limit
enable_lttng_channel_size_limit \
$session_name $channel_name $size_limit
@@
-116,15
+108,13
@@
function test_tracefile_size_limit ()
enable_ust_lttng_event_per_channel \
$session_name $event_name $channel_name
enable_ust_lttng_event_per_channel \
$session_name $event_name $channel_name
- start_lttng_tracing $session_name
-
- $TESTAPP_BIN $NR_ITER >/dev/null 2>&1 &
+ start_lttng_tracing_ok $session_name
- wait_apps
+ $TESTAPP_BIN $NR_ITER >/dev/null 2>&1
- stop_lttng_tracing $session_name
+ stop_lttng_tracing
_ok
$session_name
- destroy_lttng_session $session_name
+ destroy_lttng_session
_ok
$session_name
# Validate file size, each one shall be no larger than the
# specified size limit
# Validate file size, each one shall be no larger than the
# specified size limit
This page took
0.025646 seconds
and
4
git commands to generate.