aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-06-27 06:18:00 -0400
committerChris Michael <cp.michael@samsung.com>2018-06-27 06:18:00 -0400
commit3a3fcfb423d7d059faef0031811c557b529351d9 (patch)
tree77a9f11542b3d71e7cec74b89e21b029b3306bda
parenttests: avoid cascading failure in ecore-imf tests when not forking (diff)
downloadefl-3a3fcfb423d7d059faef0031811c557b529351d9.tar.gz
tests: ignore ibus module in ecore-imf tests when DISPLAY is not set
Summary: ibus module will refuse to load if DISPLAY is not set, so avoid failing for no reason in this case Depends on https://phab.enlightenment.org/D6433 Reviewers: ManMower, bu5hm4n, devilhorns Reviewed By: devilhorns Subscribers: cedric, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6434
-rw-r--r--src/tests/ecore/ecore_test_ecore_imf.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_imf.c b/src/tests/ecore/ecore_test_ecore_imf.c
index e4671597f5..9851c77fa1 100644
--- a/src/tests/ecore/ecore_test_ecore_imf.c
+++ b/src/tests/ecore/ecore_test_ecore_imf.c
@@ -35,7 +35,8 @@ _find_list(const Eina_List *lst, const char *item)
const Eina_List *n;
const char *s;
- if (eina_streq(item, "xim"))
+ /* these modules (currently) require x11 to run */
+ if (eina_streq(item, "xim") || eina_streq(item, "ibus"))
{
if (!getenv("DISPLAY")) return EINA_TRUE;
}
@@ -81,7 +82,8 @@ EFL_START_TEST(ecore_test_ecore_imf_modules_load)
{
Ecore_IMF_Context *ctx;
- if (eina_streq(*itr, "xim"))
+ /* these modules (currently) require x11 to run */
+ if (eina_streq(*itr, "xim") || eina_streq(*itr, "ibus"))
{
if (!getenv("DISPLAY")) continue;
}