tests: allow having zero gpio-mockup chips for tests
authorBartosz Golaszewski <bartekgola@gmail.com>
Thu, 8 Jun 2017 11:24:36 +0000 (13:24 +0200)
committerBartosz Golaszewski <bartekgola@gmail.com>
Thu, 8 Jun 2017 11:30:56 +0000 (13:30 +0200)
commit071baadcea0d9e364dfaa94051c250311eddf0bf
tree2f8226e40f3bdf6c128ea1f16b07c72db0d9939e
parentfbc58c4682bfb8305e5b71b32be5ba9b844aa0e3
tests: allow having zero gpio-mockup chips for tests

We may have tests which don't require any gpio-mockup chips to be
present. When an empty array is given as the list of chip line counts,
the gpio-mockup module will not be loaded.

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