lib: clear error in clock_snapshots_are_monotonic_one
authorSimon Marchi <simon.marchi@efficios.com>
Fri, 8 Nov 2019 20:04:01 +0000 (15:04 -0500)
committerSimon Marchi <simon.marchi@efficios.com>
Mon, 11 Nov 2019 17:19:00 +0000 (12:19 -0500)
commitd747e85f873b9938b3ac6cb8fdec5e292eb3a051
tree5f4f803ad53393c98ac3f578d545ac56ee476be8
parent7984074183ab6076b295b15eddb3a303e40aae75
lib: clear error in clock_snapshots_are_monotonic_one

When bt_clock_snapshot_get_ns_from_origin is called in
clock_snapshots_are_monotonic_one, it can return OVERFLOW_ERROR, in
which case it also sets the current thread error.
clock_snapshots_are_monotonic_one doesn't report an error status to its
caller (it's not its goal), so it should not leave the error there.

This is exercised when running Python test
ClockSnapshotTestCase.test_clock_class.

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