cedric pushed a commit to branch master.

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

commit 21c80b027eb637d77f7a3e2dc7a6cf1e1fbde60f
Author: Cedric Bail <ced...@osg.samsung.com>
Date:   Wed Mar 7 11:00:06 2018 -0800

    eo: adjust test suite to take invalidate state into account.
---
 src/tests/eo/suite/eo_test_general.c | 12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/src/tests/eo/suite/eo_test_general.c 
b/src/tests/eo/suite/eo_test_general.c
index a1e054c6ab..46b54dc62b 100644
--- a/src/tests/eo/suite/eo_test_general.c
+++ b/src/tests/eo/suite/eo_test_general.c
@@ -652,10 +652,8 @@ START_TEST(efl_refs)
    ck_assert_int_eq(efl_ref_count(obj2), 1);
    ck_assert_int_eq(efl_ref_count(obj3), 1);
 
-   efl_parent_set(obj2, obj);
-   efl_parent_set(obj3, obj);
-   ck_assert_int_eq(efl_ref_count(obj2), 2);
-   ck_assert_int_eq(efl_ref_count(obj3), 2);
+   fail_if(!efl_invalidated_get(obj2));
+   fail_if(!efl_invalidated_get(obj3));
 
    efl_del(obj);
    efl_del(obj2);
@@ -679,10 +677,8 @@ START_TEST(efl_refs)
    ck_assert_int_eq(efl_ref_count(obj2), 1);
    ck_assert_int_eq(efl_ref_count(obj3), 1);
 
-   efl_parent_set(obj2, obj);
-   efl_parent_set(obj3, obj);
-   ck_assert_int_eq(efl_ref_count(obj2), 2);
-   ck_assert_int_eq(efl_ref_count(obj3), 2);
+   fail_if(!efl_invalidated_get(obj2));
+   fail_if(!efl_invalidated_get(obj3));
 
    efl_del(obj);
    efl_del(obj2);

-- 


Reply via email to