tests: clear error in test_simple_sink
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 8 Nov 2019 19:05:37 +0000 (14:05 -0500)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Thu, 14 Nov 2019 22:49:46 +0000 (17:49 -0500)
commitccac55e077c11599f0641763127094797ab0a469
tree1bce3b321aff74b1c514b3ce5e21add2c6061d26
parenteb657c7b490f1f318d6c0c2b406baef935bbf97e
tests: clear error in test_simple_sink

When test_simple_expect_run_once_status is used to test an error case,
it leaves the current thread error set.  The next test then starts with
an error already set, which is not right.

Clear the error at the end of test_simple_expect_run_once_status.  And
while at it, validate that we have an error set exactly when an error
status is returned.

Change-Id: Iafb27908ed15b9e8a2a48bad9b58f3246a5ba3ca
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/2359
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Philippe Proulx <eeppeliteloop@gmail.com>
tests/lib/test_simple_sink.c
This page took 0.024293 seconds and 4 git commands to generate.