summaryrefslogtreecommitdiff
path: root/src/tests/eo
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@samsung.com>2018-06-21 18:45:59 -0400
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2018-06-25 17:17:13 +0200
commitd2a703e7b812398700894b9d3de4da5e3dc86c61 (patch)
tree5fcbf20c7029e32c0d43db6e182c1541c45bfebd /src/tests/eo
parent02c62d313576920822a856beec417fd9c007c3fd (diff)
tests: add some more failure cases for efl_parent_set in eo tests
ref T6837 Differential Revision: https://phab.enlightenment.org/D6358
Diffstat (limited to 'src/tests/eo')
-rw-r--r--src/tests/eo/suite/eo_test_general.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/tests/eo/suite/eo_test_general.c b/src/tests/eo/suite/eo_test_general.c
index e5f649f93d..9bc9d0f3e3 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)
1419 printf("VERIFY finalized_get()\n"); 1419 printf("VERIFY finalized_get()\n");
1420 fail_if(!efl_finalized_get(d->objs)); 1420 fail_if(!efl_finalized_get(d->objs));
1421 1421
1422 s2 = efl_add_ref(DOMAIN_CLASS, obj);
1423 ck_assert(s2);
1424 efl_parent_set(s2, NULL);
1425 efl_unref(s2);
1426
1422 printf("VERIFY parent_set(invalid) -- WILL SHOW ERRORS\n"); 1427 printf("VERIFY parent_set(invalid) -- WILL SHOW ERRORS\n");
1423 efl_domain_current_push(EFL_ID_DOMAIN_SHARED); 1428 efl_domain_current_push(EFL_ID_DOMAIN_SHARED);
1424 s1 = efl_add_ref(DOMAIN_CLASS, NULL); 1429 s1 = efl_add_ref(DOMAIN_CLASS, NULL);
@@ -1427,6 +1432,17 @@ thr1(void *data, Eina_Thread t EINA_UNUSED)
1427 efl_parent_set(d->objs, s1); 1432 efl_parent_set(d->objs, s1);
1428 printf("END OF ERRORS\n"); 1433 printf("END OF ERRORS\n");
1429 1434
1435 printf("VERIFY parent_set(invalid2) -- WILL SHOW ERRORS\n");
1436 efl_domain_current_push(EFL_ID_DOMAIN_SHARED);
1437 s1 = efl_add_ref(DOMAIN_CLASS, NULL);
1438 s2 = efl_add_ref(DOMAIN_CLASS, s1);
1439 efl_domain_current_pop();
1440 efl_parent_set(s2, NULL);
1441 efl_parent_set(s1, s2);
1442 efl_unref(s1);
1443 efl_unref(s2);
1444 printf("END OF ERRORS\n");
1445
1430 printf("VERIFY composite\n"); 1446 printf("VERIFY composite\n");
1431 efl_domain_current_push(EFL_ID_DOMAIN_SHARED); 1447 efl_domain_current_push(EFL_ID_DOMAIN_SHARED);
1432 s1 = efl_add_ref(SIMPLE_CLASS, NULL, simple_a_set(efl_added, 7)); 1448 s1 = efl_add_ref(SIMPLE_CLASS, NULL, simple_a_set(efl_added, 7));