aboutsummaryrefslogtreecommitdiffstats
path: root/lib/orber/test/orber_test_lib.erl
diff options
context:
space:
mode:
authorNiclas Eklund <[email protected]>2010-09-23 16:06:49 +0200
committerNiclas Eklund <[email protected]>2010-09-23 16:06:49 +0200
commit3cf40cefd44ab6383bd16319c7c6941fd0d0f13c (patch)
treeee39b586a31b8d9e477bc665389c9dbc3e0db30a /lib/orber/test/orber_test_lib.erl
parent2261f2a35a758133d3694816bb9bc35f22cc2d46 (diff)
downloadotp-3cf40cefd44ab6383bd16319c7c6941fd0d0f13c.tar.gz
otp-3cf40cefd44ab6383bd16319c7c6941fd0d0f13c.tar.bz2
otp-3cf40cefd44ab6383bd16319c7c6941fd0d0f13c.zip
Added basic tests for recursive uinions and structs.
Diffstat (limited to 'lib/orber/test/orber_test_lib.erl')
-rw-r--r--lib/orber/test/orber_test_lib.erl16
1 files changed, 16 insertions, 0 deletions
diff --git a/lib/orber/test/orber_test_lib.erl b/lib/orber/test/orber_test_lib.erl
index a694dc58c4..b95cf4b0ec 100644
--- a/lib/orber/test/orber_test_lib.erl
+++ b/lib/orber/test/orber_test_lib.erl
@@ -1280,6 +1280,22 @@ test_coding(Obj, Local) ->
?match({'EXCEPTION',{'MARSHAL',_,_,_}},
orber_test_server:
testing_iiop_server_marshal(Obj, "string")),
+
+ RecS = #orber_test_server_rec_struct{chain = [#orber_test_server_rec_struct{chain = []}]},
+ ?match(RecS, orber_test_server:testing_iiop_rec_struct(Obj, RecS)),
+
+ RecU = #orber_test_server_rec_union{label = 'RecursiveType',
+ value = [#orber_test_server_rec_union{label = 'RecursiveType',
+ value = []}]},
+ ?match(RecU, orber_test_server:testing_iiop_rec_union(Obj, RecU)),
+
+%% RecA1 = #any{typecode = unsupported, value = RecS},
+%% RecA2 = #any{typecode = unsupported, value = RecU},
+%% ?match(RecA1,
+%% orber_test_server:testing_iiop_rec_any(Obj, RecA1)),
+%% ?match(RecA2,
+%% orber_test_server:testing_iiop_rec_any(Obj, RecA2)),
+
ok.
%%--------------- Testing Post- & Pre-cond -------------------