bindings: cxx: add a workaround for --success run
bindings: cxx: add a workaround for --success run

If run with --success, all expressions are evaluated and printed out.
But REQUIRE_FALSE(chip) tries to iterate over the chip resulting in this
backtrace:

[...]

Work around this by forcing catch2 to call gpiod::chip::operator bool().

Signed-off-by: Alexander Stein <dbef83f64948dc68aad31596bbf6991154a9d730@mailbox.org>
Signed-off-by: Bartosz Golaszewski <e5d45fddd9040473413b909b802f629a971ad04c@baylibre.com>

brgl/libgpiod,brgl/libgpiod,brgl/libgpiod,brgl/libgpiod