summaryrefslogtreecommitdiff
path: root/cpp/test/Ice/objects/TestI.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cpp/test/Ice/objects/TestI.cpp')
-rw-r--r--cpp/test/Ice/objects/TestI.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/test/Ice/objects/TestI.cpp b/cpp/test/Ice/objects/TestI.cpp
index a48aec3d519..feb0bff4a06 100644
--- a/cpp/test/Ice/objects/TestI.cpp
+++ b/cpp/test/Ice/objects/TestI.cpp
@@ -231,9 +231,11 @@ UnexpectedObjectExceptionTestI::ice_invoke(const std::vector<Ice::Byte>&,
#if !defined(_MSC_VER) || (_MSC_VER >= 1300)
Ice::CommunicatorPtr communicator = current.adapter->getCommunicator();
Ice::OutputStreamPtr out = Ice::createOutputStream(communicator);
+ out->startEncapsulation();
AlsoEmptyPtr ae = new AlsoEmpty;
out->write(ae);
out->writePendingObjects();
+ out->endEncapsulation();
out->finished(outParams);
#endif
return true;