diff options
Diffstat (limited to 'src/tests/eo/suite/eo_test_init.c')
-rw-r--r-- | src/tests/eo/suite/eo_test_init.c | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/src/tests/eo/suite/eo_test_init.c b/src/tests/eo/suite/eo_test_init.c index 1f82be4a07..cee49211e1 100644 --- a/src/tests/eo/suite/eo_test_init.c +++ b/src/tests/eo/suite/eo_test_init.c @@ -7,24 +7,21 @@ #include "eo_suite.h" #include "eo_test_class_simple.h" -START_TEST(eo_test_simple) +EFL_START_TEST(eo_test_simple) { fail_if(!efl_object_init()); /* one init by test suite */ - fail_if(!efl_object_init()); fail_if(!efl_object_shutdown()); - fail_if(efl_object_shutdown()); } -END_TEST +EFL_END_TEST -START_TEST(eo_test_init_shutdown) +EFL_START_TEST(eo_test_init_shutdown) { Eo *obj; - fail_if(!efl_object_init()); ck_assert_str_eq("Efl.Object", efl_class_name_get(EFL_OBJECT_CLASS)); /* XXX-1: Essential for the next test to assign the wrong op. */ - obj = efl_add(SIMPLE_CLASS, NULL); + obj = efl_add_ref(SIMPLE_CLASS, NULL); simple_a_set(obj, 1); ck_assert_int_eq(1, simple_a_get(obj)); @@ -38,9 +35,8 @@ START_TEST(eo_test_init_shutdown) /* XXX-1: Verify that the op was not cached. */ ck_assert_int_eq(0xBEEF, simple2_class_beef_get(SIMPLE2_CLASS)); - fail_if(efl_object_shutdown()); } -END_TEST +EFL_END_TEST void eo_test_init(TCase *tc) { |