From f87e8c816a1fe44bd7a90de14c59fc73c6e0536e Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 21 Jun 2018 18:45:59 -0400 Subject: [PATCH] tests: add some more failure cases for efl_parent_set in eo tests ref T6837 Differential Revision: https://phab.enlightenment.org/D6358 --- src/tests/eo/suite/eo_test_general.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c index e5f649f..9bc9d0f 100644 --- a/src/tests/eo/suite/eo_test_general.c +++ b/src/tests/eo/suite/eo_test_general.c @@ -1419,6 +1419,11 @@ thr1(void *data, Eina_Thread t EINA_UNUSED) printf("VERIFY finalized_get()\n"); fail_if(!efl_finalized_get(d->objs)); + s2 = efl_add_ref(DOMAIN_CLASS, obj); + ck_assert(s2); + efl_parent_set(s2, NULL); + efl_unref(s2); + printf("VERIFY parent_set(invalid) -- WILL SHOW ERRORS\n"); efl_domain_current_push(EFL_ID_DOMAIN_SHARED); s1 = efl_add_ref(DOMAIN_CLASS, NULL); @@ -1427,6 +1432,17 @@ thr1(void *data, Eina_Thread t EINA_UNUSED) efl_parent_set(d->objs, s1); printf("END OF ERRORS\n"); + printf("VERIFY parent_set(invalid2) -- WILL SHOW ERRORS\n"); + efl_domain_current_push(EFL_ID_DOMAIN_SHARED); + s1 = efl_add_ref(DOMAIN_CLASS, NULL); + s2 = efl_add_ref(DOMAIN_CLASS, s1); + efl_domain_current_pop(); + efl_parent_set(s2, NULL); + efl_parent_set(s1, s2); + efl_unref(s1); + efl_unref(s2); + printf("END OF ERRORS\n"); + printf("VERIFY composite\n"); efl_domain_current_push(EFL_ID_DOMAIN_SHARED); s1 = efl_add_ref(SIMPLE_CLASS, NULL, simple_a_set(efl_added, 7)); -- 2.7.4