summaryrefslogtreecommitdiff
path: root/src/tests/eo
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-06-29 10:21:01 +0900
committerHermet Park <hermetpark@gmail.com>2018-06-29 10:21:02 +0900
commita62d254306b6045039d9b8d18ea19dcfe7855c05 (patch)
tree0f0d5907b2eb67fb1a01de4783b2a22c23f93789 /src/tests/eo
parent208c579e0df527791e40a0a90bef9b9e373cdf15 (diff)
tests/eo: add explicit ref check when setting an invalid parent
Summary: ref f4a55e9266520773de96bfc55b603443cd61696d Reviewers: bu5hm4n, devilhorns, Hermet Reviewed By: Hermet Subscribers: cedric, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D6473
Diffstat (limited to 'src/tests/eo')
-rw-r--r--src/tests/eo/suite/eo_test_general.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c
index 0418b6662f..acc35501d4 100644
--- a/src/tests/eo/suite/eo_test_general.c
+++ b/src/tests/eo/suite/eo_test_general.c
@@ -667,7 +667,11 @@ EFL_START_TEST(efl_refs)
667 fail_if(!efl_invalidated_get(obj2)); 667 fail_if(!efl_invalidated_get(obj2));
668 fail_if(!efl_invalidated_get(obj3)); 668 fail_if(!efl_invalidated_get(obj3));
669 669
670 efl_parent_set(obj2, obj3); 670 {
671 int ref_pre = efl_ref_count(obj2);
672 efl_parent_set(obj2, obj3);
673 ck_assert_int_eq(ref_pre, efl_ref_count(obj2));
674 }
671 675
672 efl_unref(obj); 676 efl_unref(obj);
673 efl_unref(obj2); 677 efl_unref(obj2);