summaryrefslogtreecommitdiff
path: root/src/tests/elm_test_fileselector.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/elm_test_fileselector.c')
-rw-r--r--src/tests/elm_test_fileselector.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tests/elm_test_fileselector.c b/src/tests/elm_test_fileselector.c
index e5dd0677b..a20491730 100644
--- a/src/tests/elm_test_fileselector.c
+++ b/src/tests/elm_test_fileselector.c
@@ -69,12 +69,14 @@ START_TEST (elm_fileselector_selected)
69 69
70 selected = EINA_FALSE; 70 selected = EINA_FALSE;
71 ck_assert(elm_fileselector_selected_set(fileselector, path)); 71 ck_assert(elm_fileselector_selected_set(fileselector, path));
72 while (!selected) ecore_main_loop_iterate(); 72 ck_assert(elm_test_helper_wait_flag(&selected));
73
73 ck_assert_str_eq(elm_fileselector_selected_get(fileselector), path); 74 ck_assert_str_eq(elm_fileselector_selected_get(fileselector), path);
74 75
75 selected = EINA_FALSE; 76 selected = EINA_FALSE;
76 ck_assert(elm_fileselector_selected_set(fileselector, exist)); 77 ck_assert(elm_fileselector_selected_set(fileselector, exist));
77 while (!selected) ecore_main_loop_iterate(); 78 ck_assert(elm_test_helper_wait_flag(&selected));
79
78 ck_assert_str_eq(elm_fileselector_selected_get(fileselector), exist); 80 ck_assert_str_eq(elm_fileselector_selected_get(fileselector), exist);
79 81
80 eina_stringshare_del(exist); 82 eina_stringshare_del(exist);