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
This commit is contained in:
Christopher Michael 2019-07-15 14:21:36 -04:00
parent f30ef634ad
commit af0a37da03
1 changed files with 1 additions and 1 deletions

View File

@ -165,7 +165,7 @@ EFL_END_TEST
void void
ecore_wl2_test_display(TCase *tc) 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 */ /* tests here are for server-side functions */
printf("No Wayland Compositor detected. Testing server-side functions\n"); printf("No Wayland Compositor detected. Testing server-side functions\n");