summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-06-05 09:58:19 +0100
committerTom Hacohen <tom@stosb.com>2016-06-05 10:57:07 +0100
commitaab8389a6f07273530cc28905ef36578efa6a5c3 (patch)
tree57befd66fe89e3bd6dc6656f9e8aad8e6f043bc5 /src/tests
parente21d357adf9b223659c4595bf4483a3111f44c65 (diff)
Eo: remove strict class checking for composite objects.
When compositing objects, we were checking that class_of(B) is in A's inheritance tree before allowing attaching B as a composite object of A. This is wrong and breaks a few cases, for example: B extends a class that is in A's inheritance tree or B implements an interface that is in A's inheritance tree. Thanks to Marcel for reporting.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/eo/composite_objects/composite_objects_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/tests/eo/composite_objects/composite_objects_main.c b/src/tests/eo/composite_objects/composite_objects_main.c
index b32d5f995f..e424192529 100644
--- a/src/tests/eo/composite_objects/composite_objects_main.c
+++ b/src/tests/eo/composite_objects/composite_objects_main.c
@@ -73,8 +73,6 @@ main(int argc, char *argv[])
73 fail_if(!eo_composite_part_is(simple)); 73 fail_if(!eo_composite_part_is(simple));
74 fail_if(eo_composite_attach(obj, simple)); 74 fail_if(eo_composite_attach(obj, simple));
75 75
76 fail_if(eo_composite_attach(simple, obj));
77
78 eo_unref(simple); 76 eo_unref(simple);
79 eo_unref(obj); 77 eo_unref(obj);
80 78