From 0f2a9e15cd940449ecb39954e278ab9e6a92c452 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 5 Jul 2018 15:11:06 -0400 Subject: [PATCH] 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 --- src/tests/eo/suite/eo_test_general.c | 3 +++ 1 file changed, 3 insertions(+) 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) obj2 = efl_ref(efl_add(SIMPLE_CLASS, obj)); obj3 = efl_add_ref(SIMPLE_CLASS, NULL); + efl_parent_set(obj, obj); + ck_assert_ptr_eq(efl_parent_get(obj), NULL); + efl_parent_set(obj2, obj3); efl_parent_set(obj3, obj); ck_assert_int_eq(efl_ref_count(obj2), 2);