[lttng-dev] [PATCH lttng-tools] Test: Ensure wildcards may only appear last in a string literal

Jérémie Galarneau jeremie.galarneau at efficios.com
Mon Aug 4 14:10:28 EDT 2014


Signed-off-by: Jérémie Galarneau <jeremie.galarneau at efficios.com>
---
 tests/regression/tools/filtering/test_invalid_filter | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/regression/tools/filtering/test_invalid_filter b/tests/regression/tools/filtering/test_invalid_filter
index 5e096a5..e566c8b 100755
--- 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)
-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
-- 
2.0.3




More information about the lttng-dev mailing list