forked from enlightenment/efl
tests/eo: add explicit ref check when setting an invalid parent
Summary: ref f4a55e9266
Reviewers: bu5hm4n, devilhorns, Hermet
Reviewed By: Hermet
Subscribers: cedric, #committers
Tags: #efl
Differential Revision: https://phab.enlightenment.org/D6473
This commit is contained in:
parent
208c579e0d
commit
a62d254306
|
@ -667,7 +667,11 @@ EFL_START_TEST(efl_refs)
|
||||||
fail_if(!efl_invalidated_get(obj2));
|
fail_if(!efl_invalidated_get(obj2));
|
||||||
fail_if(!efl_invalidated_get(obj3));
|
fail_if(!efl_invalidated_get(obj3));
|
||||||
|
|
||||||
|
{
|
||||||
|
int ref_pre = efl_ref_count(obj2);
|
||||||
efl_parent_set(obj2, obj3);
|
efl_parent_set(obj2, obj3);
|
||||||
|
ck_assert_int_eq(ref_pre, efl_ref_count(obj2));
|
||||||
|
}
|
||||||
|
|
||||||
efl_unref(obj);
|
efl_unref(obj);
|
||||||
efl_unref(obj2);
|
efl_unref(obj2);
|
||||||
|
|
Loading…
Reference in New Issue