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
This commit is contained in:
Mike Blumenkrantz 2018-07-05 15:11:06 -04:00
parent cba95178d5
commit 0f2a9e15cd
1 changed files with 3 additions and 0 deletions

View File

@ -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);