From: Bartosz Golaszewski Date: Thu, 16 Mar 2023 10:59:13 +0000 (+0100) Subject: bindings: cxx: tests: fix the test case for chip::unwatch_line_info() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=a81d25572593f1b5990ba3599dc4914655fb5728;p=qemu-gpiodev%2Flibgpiod.git 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 --- diff --git a/bindings/cxx/tests/tests-info-event.cpp b/bindings/cxx/tests/tests-info-event.cpp index ee31496..249b1e8 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))); }