From: Christopher Michael Date: Mon, 15 Jul 2019 18:21:36 +0000 (-0400) Subject: tests/ecore_wl2: Check for valid xdg_runtime_dir X-Git-Tag: accepted/tizen/unified/20190722.074730~16 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=38f76ab286717afd9e766098a5e1ef04d4755991;p=platform%2Fupstream%2Fefl.git 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 --- diff --git a/src/tests/ecore_wl2/ecore_wl2_test_display.c b/src/tests/ecore_wl2/ecore_wl2_test_display.c index c90c944..828db2f 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 void ecore_wl2_test_display(TCase *tc) { - if (!getenv("WAYLAND_DISPLAY")) + if ((!getenv("WAYLAND_DISPLAY")) && (getenv("XDG_RUNTIME_DIR"))) { /* tests here are for server-side functions */ printf("No Wayland Compositor detected. Testing server-side functions\n");