summaryrefslogtreecommitdiff
path: root/src/tests/eo
diff options
context:
space:
mode:
authorCedric Bail <cedric@osg.samsung.com>2018-03-07 11:00:06 -0800
committerCedric Bail <cedric@osg.samsung.com>2018-03-07 11:00:06 -0800
commit21c80b027eb637d77f7a3e2dc7a6cf1e1fbde60f (patch)
treec95384fffdb30ee677328898063f08ef3f6a0f67 /src/tests/eo
parent83233a976d7bf41ee7c81b96d1094611eafb7bd1 (diff)
eo: adjust test suite to take invalidate state into account.
Diffstat (limited to 'src/tests/eo')
-rw-r--r--src/tests/eo/suite/eo_test_general.c12
1 files 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)
652 ck_assert_int_eq(efl_ref_count(obj2), 1); 652 ck_assert_int_eq(efl_ref_count(obj2), 1);
653 ck_assert_int_eq(efl_ref_count(obj3), 1); 653 ck_assert_int_eq(efl_ref_count(obj3), 1);
654 654
655 efl_parent_set(obj2, obj); 655 fail_if(!efl_invalidated_get(obj2));
656 efl_parent_set(obj3, obj); 656 fail_if(!efl_invalidated_get(obj3));
657 ck_assert_int_eq(efl_ref_count(obj2), 2);
658 ck_assert_int_eq(efl_ref_count(obj3), 2);
659 657
660 efl_del(obj); 658 efl_del(obj);
661 efl_del(obj2); 659 efl_del(obj2);
@@ -679,10 +677,8 @@ START_TEST(efl_refs)
679 ck_assert_int_eq(efl_ref_count(obj2), 1); 677 ck_assert_int_eq(efl_ref_count(obj2), 1);
680 ck_assert_int_eq(efl_ref_count(obj3), 1); 678 ck_assert_int_eq(efl_ref_count(obj3), 1);
681 679
682 efl_parent_set(obj2, obj); 680 fail_if(!efl_invalidated_get(obj2));
683 efl_parent_set(obj3, obj); 681 fail_if(!efl_invalidated_get(obj3));
684 ck_assert_int_eq(efl_ref_count(obj2), 2);
685 ck_assert_int_eq(efl_ref_count(obj3), 2);
686 682
687 efl_del(obj); 683 efl_del(obj);
688 efl_del(obj2); 684 efl_del(obj2);