tests: create mismatch between chip and bulk offsets in wait_multiple
authorKent Gibson <warthog618@gmail.com>
Wed, 14 Oct 2020 03:47:57 +0000 (11:47 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 14 Oct 2020 08:42:05 +0000 (10:42 +0200)
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 <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
tests/tests-event.c

index ad49f70124bfbc148b98879557fff76cce09b4b3..0ef612ab15fedbc3acfd0bc92169afe551e827ff 100644 (file)
@@ -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();