test: check for the device nodes to exist before testing
authorPeter Hutterer <peter.hutterer@who-t.net>
Fri, 15 Jun 2018 05:08:53 +0000 (15:08 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Fri, 15 Jun 2018 05:19:05 +0000 (15:19 +1000)
commit1f9e087dac9b2a8dd89728785dba2ab7cf9301e4
treecbd9359cee36c0981a78d3ecb65da9bb5131f729
parent805706a8169a3973210923bca028264ef7b71c6b
test: check for the device nodes to exist before testing

Even if we're root we may be running in a container without input device
nodes. In which case we should skip the test, not fail.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/test-main.c