summaryrefslogtreecommitdiff
path: root/TAO/tests/Bug_2669_Regression/client.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/tests/Bug_2669_Regression/client.cpp')
-rw-r--r--TAO/tests/Bug_2669_Regression/client.cpp9
1 files changed, 3 insertions, 6 deletions
diff --git a/TAO/tests/Bug_2669_Regression/client.cpp b/TAO/tests/Bug_2669_Regression/client.cpp
index 8729c0f9eb5..2bab685d7f8 100644
--- a/TAO/tests/Bug_2669_Regression/client.cpp
+++ b/TAO/tests/Bug_2669_Regression/client.cpp
@@ -52,9 +52,8 @@ main (int argc, char *argv[])
{
int result = 0;
- ACE_DECLARE_NEW_CORBA_ENV;
- ACE_TRY
+ try
{
CORBA::ORB_var orb =
CORBA::ORB_init (argc, argv, "");
@@ -142,13 +141,11 @@ main (int argc, char *argv[])
orb->destroy ();
}
- ACE_CATCHANY
+ catch (const CORBA::Exception& ex)
{
- ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION,
- "Caught exception:");
+ ex._tao_print_exception ("Caught exception:");
return 1;
}
- ACE_ENDTRY;
return result;
}