aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-03-16 11:59:13 +0100
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-03-16 11:59:13 +0100
commita81d25572593f1b5990ba3599dc4914655fb5728 (patch)
tree8ccef4e18b0dd0b519468c37a365cbe8acf68279
parentf2245fa32c1bccd171e53c579bd272a6d2c01c61 (diff)
downloadlibgpiod-a81d25572593f1b5990ba3599dc4914655fb5728.tar.gz
bindings: cxx: tests: fix the test case for chip::unwatch_line_info()
We need to actually trigger a line-info event before making sure the watch has been disabled. Fixes: f2245fa32c1b ("bindings: cxx: tests: add a test case for chip::unwatch_line_info()") Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
-rw-r--r--bindings/cxx/tests/tests-info-event.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/bindings/cxx/tests/tests-info-event.cpp b/bindings/cxx/tests/tests-info-event.cpp
index ee314967..249b1e81 100644
--- a/bindings/cxx/tests/tests-info-event.cpp
+++ b/bindings/cxx/tests/tests-info-event.cpp
@@ -124,6 +124,8 @@ TEST_CASE("line info can be unwatched", "[info-event]")
chip.unwatch_line_info(5);
+ request.release();
+
REQUIRE_FALSE(chip.wait_info_event(::std::chrono::milliseconds(100)));
}