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
This commit is contained in:
Mike Blumenkrantz 2018-04-09 13:37:01 +02:00 committed by Stefan Schmidt
parent 3547297f80
commit f83dfb2173
2 changed files with 9 additions and 3 deletions

View File

@ -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);

View File

@ -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);
}