tools: return 77 if gtk_init() fails in the debug-gui
authorPeter Hutterer <peter.hutterer@who-t.net>
Wed, 26 Jun 2019 05:38:43 +0000 (15:38 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Wed, 26 Jun 2019 11:09:22 +0000 (21:09 +1000)
commit6a489b063655c9599bda90241b3253ea5cdfeeed
tree1aac8817fc94c76dcfd45be99278ef541bb89b7d
parent523c82abb5b14441201aaf78109a74694842693b
tools: return 77 if gtk_init() fails in the debug-gui

And when that happens, skip the tests because what's happening here is that
you're running tests as root, but your X server doesn't allow root to connect.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
tools/libinput-debug-gui.c
tools/test-tool-option-parsing.py