summaryrefslogtreecommitdiff
path: root/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp')
-rw-r--r--TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp b/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp
index c8f86a137ad..d18b5883ec6 100644
--- a/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp
+++ b/TAO/orbsvcs/tests/InterfaceRepo/Persistence_Test/Ptest.cpp
@@ -60,6 +60,25 @@ Ptest::init (int argc, ACE_TCHAR *argv[])
}
int
+Ptest::shutdown (void)
+{
+ try
+ {
+ this->repo_ = CORBA::Repository::_nil ();
+
+ this->orb_->destroy ();
+
+ this->orb_ = CORBA::ORB::_nil ();
+ }
+ catch (const CORBA::Exception& ex)
+ {
+ ex._tao_print_exception ("Ptest::init");
+ return -1;
+ }
+ return 0;
+}
+
+int
Ptest::run (void)
{
try