tests: src.ctf.fs: add test for metadata with invalid syntax
[babeltrace.git] / tests / plugins / src.ctf.fs / fail / test_fail
index a3526d1dd0229f2d88c63f91ec604a928bc2232f..652ec6f4bd302a87cb3271e8bceb8d1ab6c5653f 100755 (executable)
@@ -49,7 +49,7 @@ test_fail() {
 }
 
 
-plan_tests 8
+plan_tests 12
 
 test_fail \
        "invalid-packet-size/trace" \
@@ -61,4 +61,9 @@ test_fail \
        "${data_dir}/valid-events-then-invalid-events.expect" \
        "No event class with ID of event class ID to use in stream class: .*stream-class-id=0, event-class-id=255"
 
+test_fail \
+       "metadata-syntax-error" \
+       "/dev/null" \
+       "^  At line 3 in metadata stream: syntax error, unexpected CTF_RSBRAC: token=\"]\""
+
 rm -f "${stdout_file}" "${stderr_file}"
This page took 0.023207 seconds and 4 git commands to generate.