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:59 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-10 11:28:01 +0200
commit96da1551c5dc7234b2c32fb7c2310ea994e5399b (patch)
treedae5306bfb2ec6528a71c59b4783cf1c0a38bf5f /src/tests/ecore/ecore_test_ecore.c
parent3858186376da10a801677e26cc1573c95dd1c48b (diff)
tests: move ecore_test_ecore_main_loop_timer into timers test file
Summary: Depends on D5892 Reviewers: stefan_schmidt Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5893
Diffstat (limited to 'src/tests/ecore/ecore_test_ecore.c')
-rw-r--r--src/tests/ecore/ecore_test_ecore.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/src/tests/ecore/ecore_test_ecore.c b/src/tests/ecore/ecore_test_ecore.c
index f429c5b2c9..3f68225956 100644
--- a/src/tests/ecore/ecore_test_ecore.c
+++ b/src/tests/ecore/ecore_test_ecore.c
@@ -117,27 +117,6 @@ EFL_START_TEST(ecore_test_ecore_main_loop_idle_exiter)
117} 117}
118EFL_END_TEST 118EFL_END_TEST
119 119
120EFL_START_TEST(ecore_test_ecore_main_loop_timer)
121{
122 Eina_Bool did = EINA_FALSE;
123 Ecore_Timer *timer;
124 double start, end, elapsed;
125
126
127 timer = ecore_timer_add(0.1, _quit_cb, &did);
128 fail_if(timer == NULL);
129
130 start = ecore_time_get();
131 ecore_main_loop_begin();
132 end = ecore_time_get();
133 elapsed = end - start;
134
135 fail_if(did == EINA_FALSE);
136 fail_if(elapsed < 0.05);
137 fail_if(elapsed > 0.15); /* .05 second "error margin" */
138
139}
140EFL_END_TEST
141 120
142// Disabled tests: inner main loops are not supposed to work! 121// Disabled tests: inner main loops are not supposed to work!
143#if 0 122#if 0
@@ -796,7 +775,6 @@ void ecore_test_ecore(TCase *tc)
796 tcase_add_test(tc, ecore_test_ecore_main_loop_idle_enterer); 775 tcase_add_test(tc, ecore_test_ecore_main_loop_idle_enterer);
797 tcase_add_test(tc, ecore_test_ecore_main_loop_idle_before_enterer); 776 tcase_add_test(tc, ecore_test_ecore_main_loop_idle_before_enterer);
798 tcase_add_test(tc, ecore_test_ecore_main_loop_idle_exiter); 777 tcase_add_test(tc, ecore_test_ecore_main_loop_idle_exiter);
799 tcase_add_test(tc, ecore_test_ecore_main_loop_timer);
800 tcase_add_test(tc, ecore_test_ecore_main_loop_fd_handler); 778 tcase_add_test(tc, ecore_test_ecore_main_loop_fd_handler);
801 tcase_add_test(tc, ecore_test_ecore_main_loop_fd_handler_valid_flags); 779 tcase_add_test(tc, ecore_test_ecore_main_loop_fd_handler_valid_flags);
802 tcase_add_test(tc, ecore_test_ecore_main_loop_fd_handler_activate_modify); 780 tcase_add_test(tc, ecore_test_ecore_main_loop_fd_handler_activate_modify);