tests: check the return value of gpiod_line_config_add_line_settings()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 13 Apr 2023 14:49:58 +0000 (16:49 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Thu, 13 Apr 2023 14:49:58 +0000 (16:49 +0200)
commit010207cd0e586ddea4d805deeffb3df4b578eebe
tree6c432b783df82a9e3814907bfac6f59e03dbeff6
parent0929f3990edda0c84ce4c82156c94989580e88a3
tests: check the return value of gpiod_line_config_add_line_settings()

The call to gpiod_line_config_add_line_settings() can fail in the thread
function used by info-event test cases so check its return value and act
accordingly.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
tests/tests-info-event.c