summaryrefslogtreecommitdiff
path: root/src/tests/ecore/ecore_test_ecore.c
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-04-09 13:36:58 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-10 11:28:01 +0200
commit94d0aae9068ab00d8c5fdabe3412b3631de39258 (patch)
treec767c54c0e5a8a30d90b8402d63c9c8ad7ce0dc2 /src/tests/ecore/ecore_test_ecore.c
parentf810e0a3ba9401f0ca0bcb48270c1964322f9af0 (diff)
tests: reduce duration of ecore_test_ecore_main_loop_timer test
Summary: fix T6852 Depends on D5890 Reviewers: stefan_schmidt Subscribers: cedric Maniphest Tasks: T6852 Differential Revision: https://phab.enlightenment.org/D5891
Diffstat (limited to 'src/tests/ecore/ecore_test_ecore.c')
-rw-r--r--src/tests/ecore/ecore_test_ecore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/tests/ecore/ecore_test_ecore.c b/src/tests/ecore/ecore_test_ecore.c
index 3e12790bb7..f429c5b2c9 100644
--- a/src/tests/ecore/ecore_test_ecore.c
+++ b/src/tests/ecore/ecore_test_ecore.c
@@ -124,7 +124,7 @@ EFL_START_TEST(ecore_test_ecore_main_loop_timer)
124 double start, end, elapsed; 124 double start, end, elapsed;
125 125
126 126
127 timer = ecore_timer_add(2.0, _quit_cb, &did); 127 timer = ecore_timer_add(0.1, _quit_cb, &did);
128 fail_if(timer == NULL); 128 fail_if(timer == NULL);
129 129
130 start = ecore_time_get(); 130 start = ecore_time_get();
@@ -133,8 +133,8 @@ EFL_START_TEST(ecore_test_ecore_main_loop_timer)
133 elapsed = end - start; 133 elapsed = end - start;
134 134
135 fail_if(did == EINA_FALSE); 135 fail_if(did == EINA_FALSE);
136 fail_if(elapsed < 2.0); 136 fail_if(elapsed < 0.05);
137 fail_if(elapsed > 3.0); /* 1 second "error margin" */ 137 fail_if(elapsed > 0.15); /* .05 second "error margin" */
138 138
139} 139}
140EFL_END_TEST 140EFL_END_TEST