Test: Ensure wildcards may only appear last in a string literal
authorJérémie Galarneau <jeremie.galarneau@efficios.com>
Mon, 4 Aug 2014 18:10:28 +0000 (14:10 -0400)
committerDavid Goulet <dgoulet@efficios.com>
Tue, 5 Aug 2014 15:44:29 +0000 (11:44 -0400)
Signed-off-by: Jérémie Galarneau <jeremie.galarneau@efficios.com>
Signed-off-by: David Goulet <dgoulet@efficios.com>
tests/regression/tools/filtering/test_invalid_filter

index 5e096a5b389382be48cc9f5e3953a1a4fcb483e2..e566c8b72bc8b56fdf67f0f8cdbdb1189b87f1a3 100755 (executable)
@@ -24,7 +24,7 @@ SESSION_NAME="filter-invalid"
 EVENT_NAME="bogus"
 ENABLE_EVENT_STDERR="/tmp/invalid-filters-stderr"
 TRACE_PATH=$(mktemp -d)
-NUM_TESTS=143
+NUM_TESTS=146
 
 source $TESTDIR/utils/utils.sh
 
@@ -143,6 +143,8 @@ INVALID_FILTERS=(
                # 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
This page took 0.025997 seconds and 4 git commands to generate.