summaryrefslogtreecommitdiff
path: root/src/tests
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 /src/tests
parent21bba131c8697b1b1f07ce8ff039bbf1ac65519a (diff)
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 D6433 Reviewers: ManMower, bu5hm4n, devilhorns Reviewed By: devilhorns Subscribers: cedric, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6434
Diffstat (limited to 'src/tests')
-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)
35 const Eina_List *n; 35 const Eina_List *n;
36 const char *s; 36 const char *s;
37 37
38 if (eina_streq(item, "xim")) 38 /* these modules (currently) require x11 to run */
39 if (eina_streq(item, "xim") || eina_streq(item, "ibus"))
39 { 40 {
40 if (!getenv("DISPLAY")) return EINA_TRUE; 41 if (!getenv("DISPLAY")) return EINA_TRUE;
41 } 42 }
@@ -81,7 +82,8 @@ EFL_START_TEST(ecore_test_ecore_imf_modules_load)
81 { 82 {
82 Ecore_IMF_Context *ctx; 83 Ecore_IMF_Context *ctx;
83 84
84 if (eina_streq(*itr, "xim")) 85 /* these modules (currently) require x11 to run */
86 if (eina_streq(*itr, "xim") || eina_streq(*itr, "ibus"))
85 { 87 {
86 if (!getenv("DISPLAY")) continue; 88 if (!getenv("DISPLAY")) continue;
87 } 89 }