projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor: test: wrapper for start_lttng_tracing
[lttng-tools.git]
/
tests
/
regression
/
tools
/
filtering
/
test_invalid_filter
diff --git
a/tests/regression/tools/filtering/test_invalid_filter
b/tests/regression/tools/filtering/test_invalid_filter
index 5e096a5b389382be48cc9f5e3953a1a4fcb483e2..c639ff172672b52154e8586586a7506a72340425 100755
(executable)
--- a/
tests/regression/tools/filtering/test_invalid_filter
+++ b/
tests/regression/tools/filtering/test_invalid_filter
@@
-24,7
+24,7
@@
SESSION_NAME="filter-invalid"
EVENT_NAME="bogus"
ENABLE_EVENT_STDERR="/tmp/invalid-filters-stderr"
TRACE_PATH=$(mktemp -d)
EVENT_NAME="bogus"
ENABLE_EVENT_STDERR="/tmp/invalid-filters-stderr"
TRACE_PATH=$(mktemp -d)
-NUM_TESTS=14
3
+NUM_TESTS=14
6
source $TESTDIR/utils/utils.sh
source $TESTDIR/utils/utils.sh
@@
-54,7
+54,7
@@
function test_invalid_filter
diag "Filter: $test_invalid_filter"
# Create session
diag "Filter: $test_invalid_filter"
# Create session
- create_lttng_session $SESSION_NAME $TRACE_PATH
+ create_lttng_session
_ok
$SESSION_NAME $TRACE_PATH
# Apply filter
enable_ust_lttng_event_filter $SESSION_NAME $EVENT_NAME "$test_invalid_filter"
# Apply filter
enable_ust_lttng_event_filter $SESSION_NAME $EVENT_NAME "$test_invalid_filter"
@@
-72,7
+72,7
@@
function test_bytecode_limit
diag "Test filter bytecode limits (64KiB)"
# Create session
diag "Test filter bytecode limits (64KiB)"
# Create session
- create_lttng_session $SESSION_NAME $TRACE_PATH
+ create_lttng_session
_ok
$SESSION_NAME $TRACE_PATH
# Apply filter
enable_ust_lttng_event_filter $SESSION_NAME $EVENT_NAME "$BYTECODE_LIMIT"
# Apply filter
enable_ust_lttng_event_filter $SESSION_NAME $EVENT_NAME "$BYTECODE_LIMIT"
@@
-143,6
+143,8
@@
INVALID_FILTERS=(
# Only \$ctx is supported for now
"\$global.value == 0"
"0 == \$global.value"
# Only \$ctx is supported for now
"\$global.value == 0"
"0 == \$global.value"
+ # A wildcard should only appear as the last character in a string literal
+ "msg == \"my_event*_blah\""
)
start_lttng_sessiond
)
start_lttng_sessiond
This page took
0.024308 seconds
and
4
git commands to generate.