summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tests/eio/eio_test_xattr.c13
1 files changed, 10 insertions, 3 deletions
diff --git a/src/tests/eio/eio_test_xattr.c b/src/tests/eio/eio_test_xattr.c
index 6600026..6f15fac 100644
--- a/src/tests/eio/eio_test_xattr.c
+++ b/src/tests/eio/eio_test_xattr.c
@@ -83,6 +83,15 @@ _done_once_cb(void *data EINA_UNUSED, Eio_File *handler EINA_UNUSED)
83} 83}
84 84
85static void 85static void
86_done_file_cb(void *data EINA_UNUSED, Eio_File *handler EINA_UNUSED)
87{
88 int *num_of_attr = (int *)data;
89
90 fail_if( (*num_of_attr) != (sizeof (attribute) / sizeof (attribute[0])));
91 ecore_main_loop_quit();
92}
93
94static void
86_done_get_cb(void *data, Eio_File *handler EINA_UNUSED, const char *name, unsigned int len EINA_UNUSED) 95_done_get_cb(void *data, Eio_File *handler EINA_UNUSED, const char *name, unsigned int len EINA_UNUSED)
87 96
88{ 97{
@@ -170,15 +179,13 @@ START_TEST(eio_test_xattr_set)
170 179
171 num_of_attr = 0; 180 num_of_attr = 0;
172 fp = eio_file_xattr(test_file_path, 181 fp = eio_file_xattr(test_file_path,
173 _filter_cb, _main_cb, _done_once_cb, _error_cb, 182 _filter_cb, _main_cb, _done_file_cb, _error_cb,
174 &num_of_attr); 183 &num_of_attr);
175 fail_if(num_of_attr != 0); 184 fail_if(num_of_attr != 0);
176 fail_if(!fp); 185 fail_if(!fp);
177 186
178 ecore_main_loop_begin(); 187 ecore_main_loop_begin();
179 188
180 fail_if(num_of_attr != sizeof (attribute) / sizeof (attribute[0]));
181
182 close(fd); 189 close(fd);
183 unlink(test_file_path); 190 unlink(test_file_path);
184 eio_shutdown(); 191 eio_shutdown();