tests: setup libgpiomockup before checking the kernel version
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 30 Jul 2019 11:53:13 +0000 (13:53 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Tue, 30 Jul 2019 11:53:13 +0000 (13:53 +0200)
commitcb5991fe4b3b6582b3399ed1e410c52f2c2e985b
tree9af0cf6965b0b68e131e64f4f84ba8e80e8129ef
parent95f8cb0a3d4139563545651887e718d1bf141fbb
tests: setup libgpiomockup before checking the kernel version

The gpio-mockup helper library checks the kernel version itself when
creating the context object. We then check the version again (as the
minimum versions for libgpiomockup and the test-suite may differ) in
the test-suite's main function. Make sure the library runs the check
first as we don't want to tell the user the version is OK and then
fail because it isn't...

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