tests: clear error in test_simple_sink
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 8 Nov 2019 19:05:37 +0000 (14:05 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 11 Nov 2019 17:19:00 +0000 (12:19 -0500)
commit7984074183ab6076b295b15eddb3a303e40aae75
treee98560dc4767b5ee1c732695ad0e416254bf122c
parent21559c8e6692c8afb1aab0b161bdda380a2bb19d
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.024569 seconds and 4 git commands to generate.