summaryrefslogtreecommitdiff
path: root/src/tests/elm_test_helper.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tests/elm_test_helper.c')
-rw-r--r--src/tests/elm_test_helper.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/tests/elm_test_helper.c b/src/tests/elm_test_helper.c
index 453e888f1..6e11ef381 100644
--- a/src/tests/elm_test_helper.c
+++ b/src/tests/elm_test_helper.c
@@ -5,8 +5,6 @@
5#include <Ecore.h> 5#include <Ecore.h>
6#include "elm_suite.h" 6#include "elm_suite.h"
7 7
8const double timeout = 10;
9
10typedef struct _Callback_Data 8typedef struct _Callback_Data
11{ 9{
12 Ecore_Timer *timer; 10 Ecore_Timer *timer;
@@ -24,12 +22,12 @@ timer_expired_cb(void *user_data)
24} 22}
25 23
26Eina_Bool 24Eina_Bool
27elm_test_helper_wait_flag(Eina_Bool *done) 25elm_test_helper_wait_flag(double in, Eina_Bool *done)
28{ 26{
29 Callback_Data data; 27 Callback_Data data;
30 28
31 data.did_timeout = EINA_FALSE; 29 data.did_timeout = EINA_FALSE;
32 data.timer = ecore_timer_add(timeout, timer_expired_cb, &data); 30 data.timer = ecore_timer_add(in, timer_expired_cb, &data);
33 31
34 while (*done == EINA_FALSE && data.did_timeout == EINA_FALSE) 32 while (*done == EINA_FALSE && data.did_timeout == EINA_FALSE)
35 ecore_main_loop_iterate(); 33 ecore_main_loop_iterate();