summaryrefslogtreecommitdiff
path: root/src/tests/eo
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-07-05 15:11:06 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-07-05 15:11:55 -0400
commit0f2a9e15cd940449ecb39954e278ab9e6a92c452 (patch)
tree58a9f2ccd30008a32775d131bdd2594baaedf26e /src/tests/eo
parentcba95178d5bd76ce15beda5662749e54988fb900 (diff)
tests/eo: add explicit test case for setting an object as its own parent
Summary: Depends on D6489 Reviewers: bu5hm4n, devilhorns Reviewed By: bu5hm4n Subscribers: cedric, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6490
Diffstat (limited to 'src/tests/eo')
-rw-r--r--src/tests/eo/suite/eo_test_general.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c
index acc35501d4..603b14e836 100644
--- a/src/tests/eo/suite/eo_test_general.c
+++ b/src/tests/eo/suite/eo_test_general.c
@@ -629,6 +629,9 @@ EFL_START_TEST(efl_refs)
629 obj2 = efl_ref(efl_add(SIMPLE_CLASS, obj)); 629 obj2 = efl_ref(efl_add(SIMPLE_CLASS, obj));
630 obj3 = efl_add_ref(SIMPLE_CLASS, NULL); 630 obj3 = efl_add_ref(SIMPLE_CLASS, NULL);
631 631
632 efl_parent_set(obj, obj);
633 ck_assert_ptr_eq(efl_parent_get(obj), NULL);
634
632 efl_parent_set(obj2, obj3); 635 efl_parent_set(obj2, obj3);
633 efl_parent_set(obj3, obj); 636 efl_parent_set(obj3, obj);
634 ck_assert_int_eq(efl_ref_count(obj2), 2); 637 ck_assert_int_eq(efl_ref_count(obj2), 2);