summaryrefslogtreecommitdiff
path: root/src/tests/eo
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-06-19 15:19:29 -0400
committerMike Blumenkrantz <zmike@samsung.com>2018-06-25 15:14:30 -0400
commitf4a55e9266520773de96bfc55b603443cd61696d (patch)
tree18e5130d4cb00646351dc1553b974aa4a99a9616 /src/tests/eo
parent392668bdfbd03985e7c01fba74548b9db912a16f (diff)
tests: add coverage for efl_parent_set with invalidated parent object
this hits a codepath which was otherwise never triggered by unit tests
Diffstat (limited to 'src/tests/eo')
-rw-r--r--src/tests/eo/suite/eo_test_general.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c
index 9bc9d0f3e3..0418b6662f 100644
--- a/src/tests/eo/suite/eo_test_general.c
+++ b/src/tests/eo/suite/eo_test_general.c
@@ -667,6 +667,8 @@ 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);
671
670 efl_unref(obj); 672 efl_unref(obj);
671 efl_unref(obj2); 673 efl_unref(obj2);
672 efl_unref(obj3); 674 efl_unref(obj3);