Skip to content

Commit

Permalink
Add test for sequence type indirection
Browse files Browse the repository at this point in the history
  • Loading branch information
x0r authored and xor2003 committed Nov 3, 2024
1 parent fad364d commit bcaa114
Show file tree
Hide file tree
Showing 3 changed files with 486 additions and 0 deletions.
17 changes: 17 additions & 0 deletions TAO/tests/Any/Indirected/client.cpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#include "seq_indirection_bin.h"

#include "testC.h"
#include "tao/IFR_Client/IFR_BaseC.h"
#include "tao/TypeCodeFactory/TypeCodeFactory_Loader.h"
Expand Down Expand Up @@ -226,6 +228,21 @@ recursive_union_test ()
ACE_DEBUG ((LM_INFO,
"> Anys destructed\n"));


ACE_DEBUG ((LM_INFO,
"* Indirected sequence type demarshaling\n"));
{
TAO_InputCDR strm((const char*)a_raw, a_raw_len, 0, 1, 2); // big endian, IIOP 1.2

Test::StructuredEvent notifications;
if ((strm >> notifications) == 0)
{
ACE_ERROR ((LM_ERROR,
"ERROR: Failed to demarshal indirected sequence\n"));
throw Test::Sequence_Indirection_Test_Failed();
}
}

return rc;
}

Expand Down
Loading

0 comments on commit bcaa114

Please sign in to comment.