X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=tests%2Fplugins%2Fsrc.ctf.fs%2Ffail%2Ftest_fail;h=443db0c507067be9c069a3f29ad2d785ca47de9c;hb=ab003dc0397a13f72c8268c310c0559a06a87fb1;hp=a3526d1dd0229f2d88c63f91ec604a928bc2232f;hpb=0235b0db7de5bcacdb3650c92461f2ce5eb2143d;p=babeltrace.git diff --git a/tests/plugins/src.ctf.fs/fail/test_fail b/tests/plugins/src.ctf.fs/fail/test_fail index a3526d1d..443db0c5 100755 --- a/tests/plugins/src.ctf.fs/fail/test_fail +++ b/tests/plugins/src.ctf.fs/fail/test_fail @@ -10,7 +10,7 @@ SH_TAP=1 -if [ "x${BT_TESTS_SRCDIR:-}" != "x" ]; then +if [ -n "${BT_TESTS_SRCDIR:-}" ]; then UTILSSH="$BT_TESTS_SRCDIR/utils/utils.sh" else UTILSSH="$(dirname "$0")/../../../utils/utils.sh" @@ -49,7 +49,7 @@ test_fail() { } -plan_tests 8 +plan_tests 20 test_fail \ "invalid-packet-size/trace" \ @@ -61,4 +61,19 @@ 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=\"]\"" + +test_fail \ + "invalid-sequence-length-field-class" \ + "/dev/null" \ + "Sequence field class's length field class is not an unsigned integer field class: " + +test_fail \ + "invalid-variant-selector-field-class" \ + "/dev/null" \ + "Variant field class's tag field class is not an enumeration field class: " + rm -f "${stdout_file}" "${stderr_file}"