tests: src.ctf.fs: add test for metadata with invalid syntax
authorSimon Marchi <simon.marchi@efficios.com>
Thu, 30 Jun 2022 14:33:50 +0000 (10:33 -0400)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 30 Jun 2022 17:14:20 +0000 (13:14 -0400)
commitdfa664f9be160bace24f960b444818d06e75aeb5
tree44754273574bbebd2f6931a69c722e3ad593a9da
parentf5567ea88d172767b34373bc6e402da8bfd85ef8
tests: src.ctf.fs: add test for metadata with invalid syntax

It looks like we don't have any test for a metadata file with a syntax
error in it.  Add one.

It could be argued that we should not error out in that case, as there
may be unrelated files called `metadata`, and if they don't parse as CTF
1 metadata files, we should just skip over them.  But erroring out is
the current behavior of Babeltrace 2, so it should be tested to ensure
it doesn't change by mistake.

Change-Id: I82cae8ebc5df984592205c28041276cc861f30df
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/8511
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
tests/data/ctf-traces/fail/metadata-syntax-error/metadata [new file with mode: 0644]
tests/plugins/src.ctf.fs/fail/test_fail
This page took 0.024319 seconds and 4 git commands to generate.