summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore_file.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/ecore/ecore_test_ecore_file.c')
-rw-r--r--src/tests/ecore/ecore_test_ecore_file.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/tests/ecore/ecore_test_ecore_file.c b/src/tests/ecore/ecore_test_ecore_file.c
index 8838264..93689ac 100644
--- a/src/tests/ecore/ecore_test_ecore_file.c
+++ b/src/tests/ecore/ecore_test_ecore_file.c
@@ -143,18 +143,7 @@ START_TEST(ecore_test_ecore_file_operations)
143 Eina_Bool res; 143 Eina_Bool res;
144 Eina_List *list; 144 Eina_List *list;
145 145
146#ifndef HAVE_EVIL 146 tmpdir = eina_environment_tmp_get();
147#if defined(HAVE_GETUID) && defined(HAVE_GETEUID)
148 if (getuid() == geteuid())
149#endif
150 {
151 tmpdir = getenv("TMPDIR");
152 if (!tmpdir) tmpdir = getenv("XDG_RUNTIME_DIR");
153 }
154 if (!tmpdir) tmpdir = "/tmp";
155#else
156 tmpdir = (char *)evil_tmpdir_get();
157#endif /* ! HAVE_EVIL */
158 147
159 ret = ecore_file_init(); 148 ret = ecore_file_init();
160 fail_if(ret != 1); 149 fail_if(ret != 1);