diff options
author | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-25 18:17:52 +0000 |
---|---|---|
committer | elliott_c <elliott_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2007-01-25 18:17:52 +0000 |
commit | 2ee7b7eed4c0cc10f4ec25b186b04202af01b565 (patch) | |
tree | 08a8a649c90559cf5b2228c1caad15515902613e /TAO/tests/Bug_2134_Regression | |
parent | c979767a00db4ea1299af482033a68829cc16675 (diff) | |
download | ATCD-2ee7b7eed4c0cc10f4ec25b186b04202af01b565.tar.gz |
ChangeLogTag: Thu Jan 25 17:39:59 UTC 2007 Chad Elliott <elliott_c@ociweb.com>
Diffstat (limited to 'TAO/tests/Bug_2134_Regression')
-rw-r--r-- | TAO/tests/Bug_2134_Regression/Hello.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/TAO/tests/Bug_2134_Regression/Hello.cpp b/TAO/tests/Bug_2134_Regression/Hello.cpp index a86453e161e..77c9aba64aa 100644 --- a/TAO/tests/Bug_2134_Regression/Hello.cpp +++ b/TAO/tests/Bug_2134_Regression/Hello.cpp @@ -24,11 +24,11 @@ int main(int argc, char* argv[]) int status = 0; CORBA::ORB_var orb = CORBA::ORB::_nil(); - ACE_TRY_NEW_ENV + try { // Initialize the ORB orb = - CORBA::ORB_init (argc, argv, "" ACE_ENV_ARG_PARAMETER); + CORBA::ORB_init (argc, argv, ""); // create Hello object Test::Hello_impl hello_i; @@ -109,13 +109,11 @@ int main(int argc, char* argv[]) orb->destroy(); } - ACE_CATCHANY + catch (const CORBA::Exception& ex) { - ACE_PRINT_EXCEPTION (ACE_ANY_EXCEPTION, - "Error - test failed - exception caught:"); + ex._tao_print_exception ("Error - test failed - exception caught:"); status = 1; } - ACE_ENDTRY; return status; } |