tests: fix mapping of chip numbers
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 29 May 2019 15:30:53 +0000 (17:30 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 29 May 2019 15:30:53 +0000 (17:30 +0200)
commit812c7fd84d66dd0ae755d1adfb0eca9e64429c86
treeed2c7a9d8b290a1ad26bb1f974f92741e50cc18b
parente1615824b53260b1b9520a81c32c029788b810b5
tests: fix mapping of chip numbers

After recent changes the tests stopped working when other (non mockup)
GPIO chips are present in the system. The reason for that is broken
mapping of chip numbers to chip indexes. This patch fixes it.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
tests/gpiod-test.c