Re: [libgpiod][PATCH 1/2] tests: create mismatch between chip and bulk offsets in wait_multiple

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Oct 14, 2020 at 5:48 AM Kent Gibson <warthog618@xxxxxxxxx> wrote:
>
> 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@xxxxxxxxx>
> ---
>  tests/tests-event.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/tests-event.c b/tests/tests-event.c
> index 6066e45..a43f865 100644
> --- a/tests/tests-event.c
> +++ b/tests/tests-event.c
> @@ -546,7 +546,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();
> --
> 2.28.0
>

Applied, thanks!

Bartosz



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux