summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDaniel Stone <daniels@collabora.com>2016-11-29 11:05:49 +0000
committerDaniel Stone <daniels@collabora.com>2016-11-30 10:28:04 +0000
commit2295a62788d7d8b279cc683144f09356a11cead2 (patch)
treef750124e61717533a4b95f7b56fb137e9e781eba /tests
parentbeb97e5f797a2201c01913f064f881cb44e81255 (diff)
tests: Skip Xwayland test if binary isn't available
We know we're not going to succeed if the binary isn't installed, so skip the test in that case. Signed-off-by: Daniel Stone <daniels@collabora.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Diffstat (limited to 'tests')
-rw-r--r--tests/xwayland-test.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/xwayland-test.c b/tests/xwayland-test.c
index af306c12..d9d4a2d6 100644
--- a/tests/xwayland-test.c
+++ b/tests/xwayland-test.c
@@ -53,6 +53,9 @@ TEST(xwayland_client_test)
Atom atom, type_atom, actual_type;
char *wm_name;
+ if (access(XSERVER_PATH, X_OK) != 0)
+ exit(77);
+
display = XOpenDisplay(NULL);
if (!display)
exit(EXIT_FAILURE);