summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVivek Ellur <vivek.ellur@samsung.com>2015-10-31 02:37:17 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-10-31 02:37:20 +0100
commit081e9894d4c5636ed3bd59344cebca1b0a7fe7a3 (patch)
tree73cc831e55a07847aa0fee2d0f9e9e5b89bd15dd
parent78c723b2ed4fffb1318b0cf407374b7005694f34 (diff)
ecore: add test case for idler enterer function
Summary: Added test case for ecore_idle_enterer_before_add function Signed-off-by: Vivek Ellur <vivek.ellur@samsung.com> Reviewers: cedric Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D3253 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/tests/ecore/ecore_test_ecore.c21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/tests/ecore/ecore_test_ecore.c b/src/tests/ecore/ecore_test_ecore.c
index 08a00e2e27..a5331b49aa 100644
--- a/src/tests/ecore/ecore_test_ecore.c
+++ b/src/tests/ecore/ecore_test_ecore.c
@@ -106,6 +106,26 @@ START_TEST(ecore_test_ecore_main_loop_idle_enterer)
106} 106}
107END_TEST 107END_TEST
108 108
109START_TEST(ecore_test_ecore_main_loop_idle_before_enterer)
110{
111 Eina_Bool did = EINA_FALSE;
112 Ecore_Idle_Enterer *idle_enterer;
113 int ret;
114
115 ret = ecore_init();
116 fail_if(ret < 1);
117
118 idle_enterer = ecore_idle_enterer_before_add(_quit_cb, &did);
119 fail_if(idle_enterer == NULL);
120
121 ecore_main_loop_begin();
122
123 fail_if(did == EINA_FALSE);
124
125 ret = ecore_shutdown();
126}
127END_TEST
128
109START_TEST(ecore_test_ecore_main_loop_idle_exiter) 129START_TEST(ecore_test_ecore_main_loop_idle_exiter)
110{ 130{
111 Eina_Bool did = EINA_FALSE; 131 Eina_Bool did = EINA_FALSE;
@@ -681,6 +701,7 @@ void ecore_test_ecore(TCase *tc)
681 tcase_add_test(tc, ecore_test_ecore_main_loop); 701 tcase_add_test(tc, ecore_test_ecore_main_loop);
682 tcase_add_test(tc, ecore_test_ecore_main_loop_idler); 702 tcase_add_test(tc, ecore_test_ecore_main_loop_idler);
683 tcase_add_test(tc, ecore_test_ecore_main_loop_idle_enterer); 703 tcase_add_test(tc, ecore_test_ecore_main_loop_idle_enterer);
704 tcase_add_test(tc, ecore_test_ecore_main_loop_idle_before_enterer);
684 tcase_add_test(tc, ecore_test_ecore_main_loop_idle_exiter); 705 tcase_add_test(tc, ecore_test_ecore_main_loop_idle_exiter);
685 tcase_add_test(tc, ecore_test_ecore_main_loop_timer); 706 tcase_add_test(tc, ecore_test_ecore_main_loop_timer);
686 tcase_add_test(tc, ecore_test_ecore_main_loop_fd_handler); 707 tcase_add_test(tc, ecore_test_ecore_main_loop_fd_handler);