From: Kent Gibson Date: Wed, 14 Oct 2020 03:47:57 +0000 (+0800) Subject: tests: create mismatch between chip and bulk offsets in wait_multiple X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=f2f5c62f7ece23627f2dac4a58f75ee3e085f051;p=qemu-gpiodev%2Flibgpiod.git tests: create mismatch between chip and bulk offsets in wait_multiple Create a mismatch between the chip offsets and the bulk offsets to ensure the implementation is not dependent on them matching. Signed-off-by: Kent Gibson Signed-off-by: Bartosz Golaszewski --- diff --git a/tests/tests-event.c b/tests/tests-event.c index ad49f70..0ef612a 100644 --- a/tests/tests-event.c +++ b/tests/tests-event.c @@ -559,7 +559,7 @@ GPIOD_TEST_CASE(wait_multiple, 0, { 8 }) gpiod_test_return_if_failed(); gpiod_line_bulk_init(&bulk); - for (i = 0; i < 8; i++) { + for (i = 1; i < 8; i++) { line = gpiod_chip_get_line(chip, i); g_assert_nonnull(line); gpiod_test_return_if_failed();