summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Michael <cp.michael@samsung.com>2019-07-15 14:21:36 -0400
committerChristopher Michael <cp.michael@samsung.com>2019-07-15 14:21:36 -0400
commitaf0a37da03a77a96e187fd5c08debc6791b8b3c5 (patch)
tree3412011dee7b76a3f31454ed6e78cf3965b66c7d
parentf30ef634adbb776cd04e65480faafb1fe297dc85 (diff)
tests/ecore_wl2: Check for valid xdg_runtime_dir
Seems these tests need XDG_RUNTIME_DIR to be set, and it does not get set in Travis builds, so add a small check here so that Travis builds don't fail ... thanks Marcel ;) ref T8016
-rw-r--r--src/tests/ecore_wl2/ecore_wl2_test_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/ecore_wl2/ecore_wl2_test_display.c b/src/tests/ecore_wl2/ecore_wl2_test_display.c
index c90c944cb2..828db2f432 100644
--- a/src/tests/ecore_wl2/ecore_wl2_test_display.c
+++ b/src/tests/ecore_wl2/ecore_wl2_test_display.c
@@ -165,7 +165,7 @@ EFL_END_TEST
165void 165void
166ecore_wl2_test_display(TCase *tc) 166ecore_wl2_test_display(TCase *tc)
167{ 167{
168 if (!getenv("WAYLAND_DISPLAY")) 168 if ((!getenv("WAYLAND_DISPLAY")) && (getenv("XDG_RUNTIME_DIR")))
169 { 169 {
170 /* tests here are for server-side functions */ 170 /* tests here are for server-side functions */
171 printf("No Wayland Compositor detected. Testing server-side functions\n"); 171 printf("No Wayland Compositor detected. Testing server-side functions\n");