summaryrefslogtreecommitdiff
path: root/src/tests/eio
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-06-19 13:33:19 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-19 13:33:19 -0400
commit229ba6d3374043a5642d1675e322e3229f1d1834 (patch)
treef20fb39349a0b965254037330e807cc4ffc27c28 /src/tests/eio
parent2acb5e506aa02ef73281c3b63ac21422bf996a9b (diff)
tests: use fixtures for eio tests
Summary: remove a lot of duplicated code and make this test suite read more like all the other suites fix T6813 Depends on D6247 Reviewers: stefan_schmidt, bu5hm4n, ManMower, devilhorns Reviewed By: bu5hm4n, ManMower Subscribers: Hermet, bu5hm4n, cedric, #committers Tags: #efl Maniphest Tasks: T6813 Differential Revision: https://phab.enlightenment.org/D6248
Diffstat (limited to 'src/tests/eio')
-rw-r--r--src/tests/eio/eio_model_test_file.c9
-rw-r--r--src/tests/eio/eio_model_test_monitor_add.c9
-rw-r--r--src/tests/eio/eio_suite.c15
-rw-r--r--src/tests/eio/eio_test_eet.c8
-rw-r--r--src/tests/eio/eio_test_file.c30
-rw-r--r--src/tests/eio/eio_test_manager.c41
-rw-r--r--src/tests/eio/eio_test_manager_xattr.c7
-rw-r--r--src/tests/eio/eio_test_map.c7
-rw-r--r--src/tests/eio/eio_test_monitor.c2
-rw-r--r--src/tests/eio/eio_test_sentry.c2
-rw-r--r--src/tests/eio/eio_test_xattr.c14
11 files changed, 18 insertions, 126 deletions
diff --git a/src/tests/eio/eio_model_test_file.c b/src/tests/eio/eio_model_test_file.c
index 59318f8484..4a7ac7d8f7 100644
--- a/src/tests/eio/eio_model_test_file.c
+++ b/src/tests/eio/eio_model_test_file.c
@@ -166,11 +166,6 @@ EFL_START_TEST(eio_model_test_test_file)
166 166
167 memset(&reqs, 0, sizeof(struct reqs_t)); 167 memset(&reqs, 0, sizeof(struct reqs_t));
168 168
169 fail_if(!eina_init(), "ERROR: Cannot init Eina!\n");
170 fail_if(!ecore_init(), "ERROR: Cannot init Ecore!\n");
171 fail_if(!efl_object_init(), "ERROR: Cannot init EO!\n");
172 fail_if(!eio_init(), "ERROR: Cannot init EIO!\n");
173
174 filemodel = efl_add(EIO_MODEL_CLASS, efl_main_loop_get(), 169 filemodel = efl_add(EIO_MODEL_CLASS, efl_main_loop_get(),
175 eio_model_path_set(efl_added, EFL_MODEL_TEST_FILENAME_PATH)); 170 eio_model_path_set(efl_added, EFL_MODEL_TEST_FILENAME_PATH));
176 fail_if(!filemodel, "ERROR: Cannot init model!\n"); 171 fail_if(!filemodel, "ERROR: Cannot init model!\n");
@@ -197,10 +192,6 @@ EFL_START_TEST(eio_model_test_test_file)
197 ecore_main_loop_begin(); 192 ecore_main_loop_begin();
198 193
199 efl_del(filemodel); 194 efl_del(filemodel);
200
201 eio_shutdown();
202 ecore_shutdown();
203 eina_shutdown();
204} 195}
205EFL_END_TEST 196EFL_END_TEST
206 197
diff --git a/src/tests/eio/eio_model_test_monitor_add.c b/src/tests/eio/eio_model_test_monitor_add.c
index bdb6b0781a..392aa31f0f 100644
--- a/src/tests/eio/eio_model_test_monitor_add.c
+++ b/src/tests/eio/eio_model_test_monitor_add.c
@@ -99,11 +99,6 @@ EFL_START_TEST(eio_model_test_test_monitor_add)
99 Eo *filemodel = NULL; 99 Eo *filemodel = NULL;
100 Eina_Future* future; 100 Eina_Future* future;
101 101
102 fail_if(!eina_init(), "ERROR: Cannot init Eina!\n");
103 fail_if(!ecore_init(), "ERROR: Cannot init Ecore!\n");
104 fail_if(!efl_object_init(), "ERROR: Cannot init EO!\n");
105 fail_if(!eio_init(), "ERROR: Cannot init EIO!\n");
106
107 tmpdir = eina_environment_tmp_get(); 102 tmpdir = eina_environment_tmp_get();
108 103
109 filemodel = efl_add(EIO_MODEL_CLASS, 104 filemodel = efl_add(EIO_MODEL_CLASS,
@@ -122,10 +117,6 @@ EFL_START_TEST(eio_model_test_test_monitor_add)
122 117
123 efl_del(filemodel); 118 efl_del(filemodel);
124 119
125 eio_shutdown();
126 ecore_shutdown();
127 eina_shutdown();
128
129 fail_if(!children_deleted); 120 fail_if(!children_deleted);
130} 121}
131EFL_END_TEST 122EFL_END_TEST
diff --git a/src/tests/eio/eio_suite.c b/src/tests/eio/eio_suite.c
index 810bef70ed..f83afd6a75 100644
--- a/src/tests/eio/eio_suite.c
+++ b/src/tests/eio/eio_suite.c
@@ -8,7 +8,17 @@
8#include "../efl_check.h" 8#include "../efl_check.h"
9#include <Eio.h> 9#include <Eio.h>
10 10
11EFL_START_TEST(eio_init_test)
12EFL_END_TEST
13
14static void
15eio_test_init(TCase *tc)
16{
17 tcase_add_test(tc, eio_init_test);
18}
19
11static const Efl_Test_Case etc[] = { 20static const Efl_Test_Case etc[] = {
21 {"Eio", eio_test_init},
12 {"Eio_Monitor", eio_test_monitor}, 22 {"Eio_Monitor", eio_test_monitor},
13 {"Eio_Sentry", eio_test_sentry}, 23 {"Eio_Sentry", eio_test_sentry},
14 {"Eio Model", eio_model_test_file}, 24 {"Eio Model", eio_model_test_file},
@@ -26,13 +36,12 @@ static const Efl_Test_Case etc[] = {
26 36
27SUITE_INIT(eio) 37SUITE_INIT(eio)
28{ 38{
29 //T6813 39 ck_assert_int_eq(eio_init(), 1);
30 //ck_assert_int_eq(eio_init(), 1);
31} 40}
32 41
33SUITE_SHUTDOWN(eio) 42SUITE_SHUTDOWN(eio)
34{ 43{
35 //ck_assert_int_eq(eio_shutdown(), 0); 44 ck_assert_int_eq(eio_shutdown(), 0);
36} 45}
37 46
38int 47int
diff --git a/src/tests/eio/eio_test_eet.c b/src/tests/eio/eio_test_eet.c
index bfdddcf553..fbd6441ff1 100644
--- a/src/tests/eio/eio_test_eet.c
+++ b/src/tests/eio/eio_test_eet.c
@@ -73,9 +73,7 @@ EFL_START_TEST(eio_test_eet_cipher_decipher)
73 Eio_File *ef; 73 Eio_File *ef;
74 Eina_Tmpstr *file; 74 Eina_Tmpstr *file;
75 75
76 ecore_init();
77 eet_init(); 76 eet_init();
78 eio_init();
79 77
80 ret = eina_file_mkstemp("eio_eet_example_XXXXXX", &file); 78 ret = eina_file_mkstemp("eio_eet_example_XXXXXX", &file);
81 fail_if(ret == -1); 79 fail_if(ret == -1);
@@ -107,9 +105,7 @@ EFL_START_TEST(eio_test_eet_cipher_decipher)
107 fail_if(!ef); 105 fail_if(!ef);
108 106
109 eina_tmpstr_del(file); 107 eina_tmpstr_del(file);
110 eio_shutdown();
111 eet_shutdown(); 108 eet_shutdown();
112 ecore_shutdown();
113} 109}
114EFL_END_TEST 110EFL_END_TEST
115 111
@@ -167,9 +163,7 @@ EFL_START_TEST(eio_test_eet_data_cipher_decipher)
167 Test_Struct *tc; 163 Test_Struct *tc;
168 Eina_Tmpstr *file; 164 Eina_Tmpstr *file;
169 165
170 ecore_init();
171 eet_init(); 166 eet_init();
172 eio_init();
173 167
174 _test_struct_descriptor_init(); 168 _test_struct_descriptor_init();
175 tc = _test_struct_new(); 169 tc = _test_struct_new();
@@ -204,9 +198,7 @@ EFL_START_TEST(eio_test_eet_data_cipher_decipher)
204 fail_if(!ef); 198 fail_if(!ef);
205 199
206 eina_tmpstr_del(file); 200 eina_tmpstr_del(file);
207 eio_shutdown();
208 eet_shutdown(); 201 eet_shutdown();
209 ecore_shutdown();
210} 202}
211EFL_END_TEST 203EFL_END_TEST
212 204
diff --git a/src/tests/eio/eio_test_file.c b/src/tests/eio/eio_test_file.c
index d6a375a331..5028215306 100644
--- a/src/tests/eio/eio_test_file.c
+++ b/src/tests/eio/eio_test_file.c
@@ -117,16 +117,9 @@ _open_done_cb(void *data, Eio_File *handler EINA_UNUSED, Eina_File *file)
117 117
118EFL_START_TEST(eio_file_test_ls) 118EFL_START_TEST(eio_file_test_ls)
119{ 119{
120 int number_of_listed_files = 0, ret; 120 int number_of_listed_files = 0;
121 const char *new_dir = "new_dir"; 121 const char *new_dir = "new_dir";
122 122
123 ret = ecore_init();
124 fail_if(ret < 1);
125 ret = eio_init();
126 fail_if(ret < 1);
127 ret = eina_init();
128 fail_if(ret < 1);
129
130 Eina_Tmpstr *test_dirname = get_eio_test_file_tmp_dir(); 123 Eina_Tmpstr *test_dirname = get_eio_test_file_tmp_dir();
131 Eina_Tmpstr *nested_dirname = create_test_dirs(test_dirname); 124 Eina_Tmpstr *nested_dirname = create_test_dirs(test_dirname);
132 Eina_Tmpstr *nested_filename = get_full_path(test_dirname, files[3]); 125 Eina_Tmpstr *nested_filename = get_full_path(test_dirname, files[3]);
@@ -188,9 +181,6 @@ EFL_START_TEST(eio_file_test_ls)
188 eina_tmpstr_del(test_dirname); 181 eina_tmpstr_del(test_dirname);
189 eina_tmpstr_del(nested_filename); 182 eina_tmpstr_del(nested_filename);
190 eina_tmpstr_del(new_dirname); 183 eina_tmpstr_del(new_dirname);
191 eina_shutdown();
192 eio_shutdown();
193 ecore_shutdown();
194} 184}
195EFL_END_TEST 185EFL_END_TEST
196 186
@@ -200,12 +190,6 @@ EFL_START_TEST(eio_file_test_file)
200 Eina_Bool is_dir; 190 Eina_Bool is_dir;
201 const char * new_file = "new_file"; 191 const char * new_file = "new_file";
202 192
203 ret = ecore_init();
204 fail_if(ret < 1);
205 ret = eio_init();
206 fail_if(ret < 1);
207 ret = eina_init();
208 fail_if(ret < 1);
209 ret = ecore_file_init(); 193 ret = ecore_file_init();
210 fail_if(ret < 1); 194 fail_if(ret < 1);
211 195
@@ -303,9 +287,6 @@ EFL_START_TEST(eio_file_test_file)
303 eina_tmpstr_del(new_filename); 287 eina_tmpstr_del(new_filename);
304 eina_tmpstr_del(new_dirname); 288 eina_tmpstr_del(new_dirname);
305 ecore_file_shutdown(); 289 ecore_file_shutdown();
306 eina_shutdown();
307 eio_shutdown();
308 ecore_shutdown();
309} 290}
310EFL_END_TEST 291EFL_END_TEST
311 292
@@ -314,12 +295,6 @@ EFL_START_TEST(eio_file_test_open)
314 Eina_Bool opened_file; 295 Eina_Bool opened_file;
315 int ret; 296 int ret;
316 297
317 ret = ecore_init();
318 fail_if(ret < 1);
319 ret = eio_init();
320 fail_if(ret < 1);
321 ret = eina_init();
322 fail_if(ret < 1);
323 ret = ecore_file_init(); 298 ret = ecore_file_init();
324 fail_if(ret < 1); 299 fail_if(ret < 1);
325 300
@@ -340,9 +315,6 @@ EFL_START_TEST(eio_file_test_open)
340 eina_tmpstr_del(test_dirname); 315 eina_tmpstr_del(test_dirname);
341 eina_tmpstr_del(nested_filename); 316 eina_tmpstr_del(nested_filename);
342 ecore_file_shutdown(); 317 ecore_file_shutdown();
343 eina_shutdown();
344 eio_shutdown();
345 ecore_shutdown();
346} 318}
347EFL_END_TEST 319EFL_END_TEST
348 320
diff --git a/src/tests/eio/eio_test_manager.c b/src/tests/eio/eio_test_manager.c
index 7501111fc1..0a849adcc8 100644
--- a/src/tests/eio/eio_test_manager.c
+++ b/src/tests/eio/eio_test_manager.c
@@ -202,12 +202,6 @@ EFL_START_TEST(efl_io_manager_test_stat)
202 Eina_Bool is_dir = EINA_TRUE; 202 Eina_Bool is_dir = EINA_TRUE;
203 int ret; 203 int ret;
204 204
205 ret = ecore_init();
206 fail_if(ret < 1);
207 ret = eio_init();
208 fail_if(ret < 1);
209 ret = eina_init();
210 fail_if(ret < 1);
211 ret = ecore_file_init(); 205 ret = ecore_file_init();
212 fail_if(ret < 1); 206 fail_if(ret < 1);
213 207
@@ -236,9 +230,6 @@ EFL_START_TEST(efl_io_manager_test_stat)
236 eina_tmpstr_del(test_dirname); 230 eina_tmpstr_del(test_dirname);
237 eina_tmpstr_del(nested_filename); 231 eina_tmpstr_del(nested_filename);
238 ecore_file_shutdown(); 232 ecore_file_shutdown();
239 eina_shutdown();
240 eio_shutdown();
241 ecore_shutdown();
242} 233}
243EFL_END_TEST 234EFL_END_TEST
244 235
@@ -252,12 +243,6 @@ EFL_START_TEST(efl_io_manager_test_ls)
252 uint64_t main_files = 0; 243 uint64_t main_files = 0;
253 int ret; 244 int ret;
254 245
255 ret = ecore_init();
256 fail_if(ret < 1);
257 ret = eio_init();
258 fail_if(ret < 1);
259 ret = eina_init();
260 fail_if(ret < 1);
261 ret = ecore_file_init(); 246 ret = ecore_file_init();
262 fail_if(ret < 1); 247 fail_if(ret < 1);
263 248
@@ -291,9 +276,6 @@ EFL_START_TEST(efl_io_manager_test_ls)
291 eina_tmpstr_del(test_dirname); 276 eina_tmpstr_del(test_dirname);
292 eina_tmpstr_del(nested_filename); 277 eina_tmpstr_del(nested_filename);
293 ecore_file_shutdown(); 278 ecore_file_shutdown();
294 eina_shutdown();
295 eio_shutdown();
296 ecore_shutdown();
297} 279}
298EFL_END_TEST 280EFL_END_TEST
299 281
@@ -307,14 +289,8 @@ EFL_START_TEST(efl_io_manager_test_open)
307 Eina_Bool opened_file = EINA_FALSE; 289 Eina_Bool opened_file = EINA_FALSE;
308 int ret; 290 int ret;
309 291
310 ret = ecore_init();
311 fail_if(ret < 1);
312 ret = eina_init();
313 fail_if(ret < 1);
314 ret = ecore_file_init(); 292 ret = ecore_file_init();
315 fail_if(ret < 1); 293 fail_if(ret < 1);
316 ret = eio_init();
317 fail_if(ret < 1);
318 294
319 test_dirname = get_eio_test_file_tmp_dir(); 295 test_dirname = get_eio_test_file_tmp_dir();
320 nested_dirname = create_test_dirs(test_dirname); 296 nested_dirname = create_test_dirs(test_dirname);
@@ -335,31 +311,24 @@ EFL_START_TEST(efl_io_manager_test_open)
335 eina_tmpstr_del(nested_dirname); 311 eina_tmpstr_del(nested_dirname);
336 eina_tmpstr_del(test_dirname); 312 eina_tmpstr_del(test_dirname);
337 313
338 eio_shutdown();
339 eina_tmpstr_del(nested_filename); 314 eina_tmpstr_del(nested_filename);
340 ecore_file_shutdown(); 315 ecore_file_shutdown();
341 eina_shutdown();
342 ecore_shutdown();
343} 316}
344EFL_END_TEST 317EFL_END_TEST
345 318
346EFL_START_TEST(efl_io_instantiated) 319EFL_START_TEST(efl_io_test_instantiated)
347{ 320{
348 Efl_Io_Manager *manager; 321 Efl_Io_Manager *manager;
349 322
323 ck_assert_int_eq(eio_shutdown(), 0);
350 ecore_init(); 324 ecore_init();
351
352 fail_if(efl_provider_find(efl_main_loop_get(), EFL_IO_MANAGER_CLASS) != NULL); 325 fail_if(efl_provider_find(efl_main_loop_get(), EFL_IO_MANAGER_CLASS) != NULL);
353 326 ecore_shutdown();
354 eio_init(); 327 ck_assert_int_eq(eio_init(), 1);
355 328
356 manager = efl_provider_find(efl_main_loop_get(), EFL_IO_MANAGER_CLASS); 329 manager = efl_provider_find(efl_main_loop_get(), EFL_IO_MANAGER_CLASS);
357 fail_if(manager == NULL); 330 fail_if(manager == NULL);
358 fail_if(!efl_isa(manager, EFL_IO_MANAGER_CLASS)); 331 fail_if(!efl_isa(manager, EFL_IO_MANAGER_CLASS));
359
360 eio_shutdown();
361
362 ecore_shutdown();
363} 332}
364EFL_END_TEST 333EFL_END_TEST
365 334
@@ -369,5 +338,5 @@ eio_test_job(TCase *tc)
369 tcase_add_test(tc, efl_io_manager_test_ls); 338 tcase_add_test(tc, efl_io_manager_test_ls);
370 tcase_add_test(tc, efl_io_manager_test_stat); 339 tcase_add_test(tc, efl_io_manager_test_stat);
371 tcase_add_test(tc, efl_io_manager_test_open); 340 tcase_add_test(tc, efl_io_manager_test_open);
372 tcase_add_test(tc, efl_io_instantiated); 341 tcase_add_test(tc, efl_io_test_instantiated);
373} 342}
diff --git a/src/tests/eio/eio_test_manager_xattr.c b/src/tests/eio/eio_test_manager_xattr.c
index db8142fa76..2d88548239 100644
--- a/src/tests/eio/eio_test_manager_xattr.c
+++ b/src/tests/eio/eio_test_manager_xattr.c
@@ -127,10 +127,6 @@ EFL_START_TEST(eio_test_job_xattr_set)
127 Eo *job; 127 Eo *job;
128 Eina_Future **futures = NULL; 128 Eina_Future **futures = NULL;
129 129
130 ecore_init();
131 eina_init();
132 eio_init();
133
134 job = efl_add(EFL_IO_MANAGER_CLASS, efl_main_loop_get()); 130 job = efl_add(EFL_IO_MANAGER_CLASS, efl_main_loop_get());
135 131
136 test_file_path = get_full_path(XATTR_TEST_DIR, filename); 132 test_file_path = get_full_path(XATTR_TEST_DIR, filename);
@@ -189,9 +185,6 @@ EFL_START_TEST(eio_test_job_xattr_set)
189 close(fd); 185 close(fd);
190 unlink(test_file_path); 186 unlink(test_file_path);
191 eina_tmpstr_del(test_file_path); 187 eina_tmpstr_del(test_file_path);
192 eio_shutdown();
193 eina_shutdown();
194 ecore_shutdown();
195} 188}
196EFL_END_TEST 189EFL_END_TEST
197 190
diff --git a/src/tests/eio/eio_test_map.c b/src/tests/eio/eio_test_map.c
index 0c4dc859ab..abfb80f23a 100644
--- a/src/tests/eio/eio_test_map.c
+++ b/src/tests/eio/eio_test_map.c
@@ -61,10 +61,6 @@ EFL_START_TEST(eio_test_map_simple)
61 Eio_File *ef; 61 Eio_File *ef;
62 Eina_Tmpstr *file_path; 62 Eina_Tmpstr *file_path;
63 63
64 ecore_init();
65 eina_init();
66 eio_init();
67
68 fd = eina_file_mkstemp(file, &file_path); 64 fd = eina_file_mkstemp(file, &file_path);
69 fail_if(fd < 0); 65 fail_if(fd < 0);
70 fail_if(write(fd, data, strlen(data)) != (ssize_t)strlen(data)); 66 fail_if(write(fd, data, strlen(data)) != (ssize_t)strlen(data));
@@ -89,9 +85,6 @@ EFL_START_TEST(eio_test_map_simple)
89 fail_if(!ef); 85 fail_if(!ef);
90 86
91 eina_tmpstr_del(file_path); 87 eina_tmpstr_del(file_path);
92 eio_shutdown();
93 eina_shutdown();
94 ecore_shutdown();
95} 88}
96EFL_END_TEST 89EFL_END_TEST
97 90
diff --git a/src/tests/eio/eio_test_monitor.c b/src/tests/eio/eio_test_monitor.c
index 0e774dfe0b..68f4023c66 100644
--- a/src/tests/eio/eio_test_monitor.c
+++ b/src/tests/eio/eio_test_monitor.c
@@ -116,7 +116,6 @@ static Eina_Bool _check_event_path(void *data, void *event)
116static Eina_Tmpstr *_common_init() 116static Eina_Tmpstr *_common_init()
117{ 117{
118 Eina_Tmpstr *dirname; 118 Eina_Tmpstr *dirname;
119 fail_if(eio_init() != 1);
120 ecore_file_init(); 119 ecore_file_init();
121 120
122 //test timeout 121 //test timeout
@@ -130,7 +129,6 @@ static void _common_shutdown(Eina_Tmpstr *dirname)
130{ 129{
131 _delete_directory((void*)dirname); 130 _delete_directory((void*)dirname);
132 ecore_file_shutdown(); 131 ecore_file_shutdown();
133 fail_if(eio_shutdown() != 0);
134 eina_tmpstr_del(dirname); 132 eina_tmpstr_del(dirname);
135} 133}
136 134
diff --git a/src/tests/eio/eio_test_sentry.c b/src/tests/eio/eio_test_sentry.c
index f11d670e6e..5fdcde0110 100644
--- a/src/tests/eio/eio_test_sentry.c
+++ b/src/tests/eio/eio_test_sentry.c
@@ -115,7 +115,6 @@ static void _check_event_path(void *data, const Efl_Event *event)
115static Eina_Tmpstr *_common_init() 115static Eina_Tmpstr *_common_init()
116{ 116{
117 Eina_Tmpstr *dirname; 117 Eina_Tmpstr *dirname;
118 fail_if(eio_init() != 1);
119 ecore_file_init(); 118 ecore_file_init();
120 119
121 //test timeout 120 //test timeout
@@ -129,7 +128,6 @@ static void _common_shutdown(Eina_Tmpstr *dirname)
129{ 128{
130 _delete_directory((void*)dirname); 129 _delete_directory((void*)dirname);
131 ecore_file_shutdown(); 130 ecore_file_shutdown();
132 fail_if(eio_shutdown() != 0);
133 eina_tmpstr_del(dirname); 131 eina_tmpstr_del(dirname);
134} 132}
135 133
diff --git a/src/tests/eio/eio_test_xattr.c b/src/tests/eio/eio_test_xattr.c
index 4eff0b742e..62b956af05 100644
--- a/src/tests/eio/eio_test_xattr.c
+++ b/src/tests/eio/eio_test_xattr.c
@@ -138,10 +138,6 @@ EFL_START_TEST(eio_test_xattr_set)
138 int num_of_attr = 0, fd; 138 int num_of_attr = 0, fd;
139 unsigned int i; 139 unsigned int i;
140 140
141 ecore_init();
142 eina_init();
143 eio_init();
144
145 test_file_path = get_full_path(XATTR_TEST_DIR, filename); 141 test_file_path = get_full_path(XATTR_TEST_DIR, filename);
146 fd = open(test_file_path, 142 fd = open(test_file_path,
147 O_WRONLY | O_CREAT | O_TRUNC, 143 O_WRONLY | O_CREAT | O_TRUNC,
@@ -182,9 +178,6 @@ EFL_START_TEST(eio_test_xattr_set)
182 close(fd); 178 close(fd);
183 unlink(test_file_path); 179 unlink(test_file_path);
184 eina_tmpstr_del(test_file_path); 180 eina_tmpstr_del(test_file_path);
185 eio_shutdown();
186 eina_shutdown();
187 ecore_shutdown();
188} 181}
189EFL_END_TEST 182EFL_END_TEST
190 183
@@ -196,10 +189,6 @@ EFL_START_TEST(eio_test_xattr_types_set)
196 int fd, num_of_attr=0; 189 int fd, num_of_attr=0;
197 Eio_File *fp; 190 Eio_File *fp;
198 191
199 ecore_init();
200 eina_init();
201 eio_init();
202
203 test_file_path = get_full_path(XATTR_TEST_DIR, filename); 192 test_file_path = get_full_path(XATTR_TEST_DIR, filename);
204 fd = open(test_file_path, 193 fd = open(test_file_path,
205 O_WRONLY | O_CREAT | O_TRUNC, 194 O_WRONLY | O_CREAT | O_TRUNC,
@@ -253,9 +242,6 @@ EFL_START_TEST(eio_test_xattr_types_set)
253 close(fd); 242 close(fd);
254 unlink(test_file_path); 243 unlink(test_file_path);
255 eina_tmpstr_del(test_file_path); 244 eina_tmpstr_del(test_file_path);
256 eio_shutdown();
257 eina_shutdown();
258 ecore_shutdown();
259} 245}
260EFL_END_TEST 246EFL_END_TEST
261#endif 247#endif