this should make ecore_imf testable with empty env vars also meaning
no env var and the make check test will now ensuree this is set to
exactly test this.
modules_load = built_modules;
env = getenv("ECORE_IMF_MODULE");
- if (env)
+ if ((env) && (env[0]))
{
modules_one[0] = env;
modules_load = modules_one;
if ((!env) && (!getenv("WAYLAND_DISPLAY")) && (getenv("DISPLAY")))
env = "xim";
#endif
- if (env)
+ if ((env) && (env[0]))
{
const char **itr;
Eina_Bool ok = EINA_FALSE;
Eina_List *modules;
const char **itr;
+ putenv("ECORE_IMF_MODULE=");
ecore_imf_init();
modules = ecore_imf_context_available_ids_get();
START_TEST(ecore_test_ecore_imf_modules_load)
{
- const char **itr;
+ const char **itr, *env;
+ putenv("ECORE_IMF_MODULE=");
ecore_imf_init();
-
for (itr = built_modules; *itr != NULL; itr++)
{
Ecore_IMF_Context *ctx = ecore_imf_context_add(*itr);