tests/plugins/flt.utils.muxer: add test for clock (in)compatibility cases
Add a test for the various clock class incompatibility cases checked by
the `MsgIter::_makeSureClkClsIsExpected` method in the `flt.utils.muxer`
component class.
The scenarios are equivalent to the triggers in
`tests/lib/conds/conds-trigger.cpp`, used to test the preconditions in
the library. Since the scenarios are equivalent, it would probably be
possible to share some code with that file, but I haven't tried it.
In essence, for each scenario, the test creates a graph where a muxer
component receives two messages with incompatible clock
configurations. The test expects that an exception is thrown, and
checks whether the root cause contains an expected string.
Change-Id: I8bd98fa52719ab2cedb7cbb09310a560b437eb28
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/12005
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
Tested-by: jenkins <jenkins@lttng.org>
This page took 0.028523 seconds and 4 git commands to generate.