Skip to content

Commit 8131b2e

Browse files
author
x0r
committed
Add test for sequence type indirection
1 parent c24760f commit 8131b2e

File tree

3 files changed

+486
-0
lines changed

3 files changed

+486
-0
lines changed

TAO/tests/Any/Indirected/client.cpp

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#include "seq_indirection_bin.h"
2+
13
#include "testC.h"
24
#include "tao/IFR_Client/IFR_BaseC.h"
35
#include "tao/TypeCodeFactory/TypeCodeFactory_Loader.h"
@@ -226,6 +228,21 @@ recursive_union_test ()
226228
ACE_DEBUG ((LM_INFO,
227229
"> Anys destructed\n"));
228230

231+
232+
ACE_DEBUG ((LM_INFO,
233+
"* Indirected sequence type demarshaling\n"));
234+
{
235+
TAO_InputCDR strm((const char*)a_raw, a_raw_len, 0, 1, 2); // big endian, IIOP 1.2
236+
237+
Test::StructuredEvent notifications;
238+
if ((strm >> notifications) == 0)
239+
{
240+
ACE_ERROR ((LM_ERROR,
241+
"ERROR: Failed to demarshal indirected sequence\n"));
242+
throw Test::Sequence_Indirection_Test_Failed();
243+
}
244+
}
245+
229246
return rc;
230247
}
231248

0 commit comments

Comments
 (0)