stefan pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=f83dfb21736071efbad43b17525f24ab4a93957a

commit f83dfb21736071efbad43b17525f24ab4a93957a
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Mon Apr 9 13:37:01 2018 +0200

    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
---
 src/tests/ecore/efl_app_test_loop.c       | 3 ---
 src/tests/ecore/efl_app_test_loop_timer.c | 9 +++++++++
 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)
    t = efl_provider_find(efl_app_get(), EFL_LOOP_TIMER_CLASS);
    fail_if(t != NULL);
 
-   n = efl_add(EFL_LOOP_TIMER_CLASS, efl_app_get());
-   fail_if(n != NULL);
-
    n = efl_add(EFL_LOOP_TIMER_CLASS, efl_app_get(),
                efl_loop_timer_interval_set(efl_added, 1.0));
    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)
 EFL_END_TEST
 */
 
+EFL_START_TEST(efl_app_test_loop_timer_invalid)
+{
+   Efl_Object *t = efl_add(EFL_LOOP_TIMER_CLASS, efl_app_get());
+   fail_if(t != NULL);
+}
+EFL_END_TEST
+
 void efl_app_test_efl_loop_timer(TCase *tc EINA_UNUSED)
 {
   /* XXX: this seems a silly test - that we del the loop object?
     tcase_add_test(tc, ecore_test_timer_lifecycle);
    */
+
+   tcase_add_test(tc, efl_app_test_loop_timer_invalid);
 }

-- 


Reply via email to