forked from enlightenment/efl
tests/ecore_wl2: Fix ecore_wl2_display_input_find test
So apparently Enlightenment uses 'seat0' for input name and Weston uses 'default'. Test for E_START env var and adjust function call so that the test does not fail in either case.
This commit is contained in:
parent
f7c859d9f8
commit
e5c64b13c1
|
@ -185,7 +185,12 @@ EFL_START_TEST(wl2_display_input_find_by_name)
|
|||
disp = _display_connect();
|
||||
ck_assert(disp != NULL);
|
||||
|
||||
input = ecore_wl2_display_input_find_by_name(disp, "default");
|
||||
/* NB: Enlightenment uses "seat0" here, but Weston uses "default" */
|
||||
if (getenv("E_START"))
|
||||
input = ecore_wl2_display_input_find_by_name(disp, "seat0");
|
||||
else
|
||||
input = ecore_wl2_display_input_find_by_name(disp, "default");
|
||||
|
||||
ck_assert(input != NULL);
|
||||
}
|
||||
EFL_END_TEST
|
||||
|
|
Loading…
Reference in New Issue