summaryrefslogtreecommitdiff
path: root/src/tests/ecore_con
diff options
context:
space:
mode:
authorCedric BAIL <cedric@osg.samsung.com>2015-10-12 14:00:01 -0700
committerCedric BAIL <cedric@osg.samsung.com>2015-10-12 14:01:23 -0700
commitec909b4d6a1bf50e2f4e4be1096275ee14f6c0e4 (patch)
tree9e37b6ca2486ea93fcdf2178b5b6cf1a05833cc7 /src/tests/ecore_con
parent412d311830e6e9ae9aa464e43986df312fb1da45 (diff)
ecore_con: be more defensive while using environment variable provided by the system.
This fix a crash during make check for system where one of those string where not defined.
Diffstat (limited to 'src/tests/ecore_con')
-rw-r--r--src/tests/ecore_con/ecore_con_test_ecore_con.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/ecore_con/ecore_con_test_ecore_con.c b/src/tests/ecore_con/ecore_con_test_ecore_con.c
index 67f3672..6618221 100644
--- a/src/tests/ecore_con/ecore_con_test_ecore_con.c
+++ b/src/tests/ecore_con/ecore_con_test_ecore_con.c
@@ -362,9 +362,9 @@ START_TEST(ecore_test_ecore_con_local_user_none)
362 unsetenv("HOME"); 362 unsetenv("HOME");
363 unsetenv("TMPDIR"); 363 unsetenv("TMPDIR");
364 _ecore_con_server_client_tests(ECORE_CON_LOCAL_USER, "test_sock", EINA_FALSE, 12345); 364 _ecore_con_server_client_tests(ECORE_CON_LOCAL_USER, "test_sock", EINA_FALSE, 12345);
365 setenv("TMPDIR", tmp, 1); 365 if (tmp) setenv("TMPDIR", tmp, 1);
366 setenv("HOME", homedir, 1); 366 if (homedir) setenv("HOME", homedir, 1);
367 setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 1); 367 if (xdg_runtime_dir) setenv("XDG_RUNTIME_DIR", xdg_runtime_dir, 1);
368} 368}
369END_TEST 369END_TEST
370 370