summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2018-04-09 13:37:01 +0200
committerStefan Schmidt <stefan@osg.samsung.com>2018-04-10 11:28:01 +0200
commitf83dfb21736071efbad43b17525f24ab4a93957a (patch)
treecacd86a9611ee1cb50f0318b339bc302dd337c2b
parent3547297f8099b09522b153bdf13ad257658589cd (diff)
tests: break out simple timer failure test into separate test
Summary: Depends on D5897 Reviewers: stefan_schmidt Subscribers: cedric Differential Revision: https://phab.enlightenment.org/D5898
-rw-r--r--src/tests/ecore/efl_app_test_loop.c3
-rw-r--r--src/tests/ecore/efl_app_test_loop_timer.c9
2 files changed, 9 insertions, 3 deletions
diff --git a/src/tests/ecore/efl_app_test_loop.c b/src/tests/ecore/efl_app_test_loop.c
index ddf0724449..c924925169 100644
--- a/src/tests/ecore/efl_app_test_loop.c
+++ b/src/tests/ecore/efl_app_test_loop.c
@@ -23,9 +23,6 @@ EFL_START_TEST(efl_app_test_efl_loop_register)
23 t = efl_provider_find(efl_app_get(), EFL_LOOP_TIMER_CLASS); 23 t = efl_provider_find(efl_app_get(), EFL_LOOP_TIMER_CLASS);
24 fail_if(t != NULL); 24 fail_if(t != NULL);
25 25
26 n = efl_add(EFL_LOOP_TIMER_CLASS, efl_app_get());
27 fail_if(n != NULL);
28
29 n = efl_add(EFL_LOOP_TIMER_CLASS, efl_app_get(), 26 n = efl_add(EFL_LOOP_TIMER_CLASS, efl_app_get(),
30 efl_loop_timer_interval_set(efl_added, 1.0)); 27 efl_loop_timer_interval_set(efl_added, 1.0));
31 efl_loop_register(efl_app_get(), EFL_LOOP_TIMER_CLASS, n); 28 efl_loop_register(efl_app_get(), EFL_LOOP_TIMER_CLASS, n);
diff --git a/src/tests/ecore/efl_app_test_loop_timer.c b/src/tests/ecore/efl_app_test_loop_timer.c
index be1c6876c3..fadb523395 100644
--- a/src/tests/ecore/efl_app_test_loop_timer.c
+++ b/src/tests/ecore/efl_app_test_loop_timer.c
@@ -65,9 +65,18 @@ EFL_START_TEST(ecore_test_timer_lifecycle)
65EFL_END_TEST 65EFL_END_TEST
66*/ 66*/
67 67
68EFL_START_TEST(efl_app_test_loop_timer_invalid)
69{
70 Efl_Object *t = efl_add(EFL_LOOP_TIMER_CLASS, efl_app_get());
71 fail_if(t != NULL);
72}
73EFL_END_TEST
74
68void efl_app_test_efl_loop_timer(TCase *tc EINA_UNUSED) 75void efl_app_test_efl_loop_timer(TCase *tc EINA_UNUSED)
69{ 76{
70 /* XXX: this seems a silly test - that we del the loop object? 77 /* XXX: this seems a silly test - that we del the loop object?
71 tcase_add_test(tc, ecore_test_timer_lifecycle); 78 tcase_add_test(tc, ecore_test_timer_lifecycle);
72 */ 79 */
80
81 tcase_add_test(tc, efl_app_test_loop_timer_invalid);
73} 82}