tests: add a chip iterator test case
authorBartosz Golaszewski <bartekgola@gmail.com>
Mon, 20 Feb 2017 14:57:24 +0000 (15:57 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Mon, 20 Feb 2017 15:03:36 +0000 (16:03 +0100)
commit14b93163da85db81004fc7d602f9844877aaa295
treea1a751551d241a12fe1bb82aa08653b10c8d77aa
parent8ff90454fc111a914802f7c4f2c4e1355ee0c16c
tests: add a chip iterator test case

Add a test case checking the chip iterators and the accompanying
gpiod_foreach_chip() macro.

Since we're adding a new file: make the cleanup helpers reusable from
all test files.

Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
tests/unit/Makefile.am
tests/unit/gpiod-unit.c
tests/unit/gpiod-unit.h
tests/unit/tests-chip.c
tests/unit/tests-iter.c [new file with mode: 0644]