diff options
author | john_c <john_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-05-08 23:00:05 +0000 |
---|---|---|
committer | john_c <john_c@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2006-05-08 23:00:05 +0000 |
commit | d1160e68b1301a8b0e120ba8da56bb2e7d4fb49e (patch) | |
tree | cf04398acb7ad9fb45311eb105d60975028bbc03 /TAO/orbsvcs/examples/ImR/Combined_Service/test.cpp | |
parent | 1c3dd540264435be21072a3a69a8a8e969bd2b1a (diff) | |
download | ATCD-oci_wchar_refactor_post_1_5_1_branch.tar.gz |
Fri May 5 14:33:29 UTC 2006 Ciju John <john_c@ociweb.com>oci_wchar_refactor_post_1_5_1_branch
Diffstat (limited to 'TAO/orbsvcs/examples/ImR/Combined_Service/test.cpp')
-rw-r--r-- | TAO/orbsvcs/examples/ImR/Combined_Service/test.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
diff --git a/TAO/orbsvcs/examples/ImR/Combined_Service/test.cpp b/TAO/orbsvcs/examples/ImR/Combined_Service/test.cpp index 0976425f762..807f4a68a0f 100644 --- a/TAO/orbsvcs/examples/ImR/Combined_Service/test.cpp +++ b/TAO/orbsvcs/examples/ImR/Combined_Service/test.cpp @@ -6,9 +6,12 @@ #include "ace/SString.h" #include "ace/Log_Msg.h" #include "ace/OS_NS_stdio.h" +#include "ace/Argv_Type_Converter.h" + #include <stdexcept> #include <string> + #define assertTrue(CONDITION) \ if (CONDITION == false) { \ ACE_CString str ("Error : "#CONDITION" "__FILE__":"); \ @@ -19,13 +22,13 @@ using namespace CORBA; -int -main (int argc, char* argv[]) +int ACE_TMAIN(int argc, ACE_TCHAR* argv[]) { - try + ACE_Argv_Type_Converter convert (argc, argv); + + try { - - ORB_var orb = ORB_init (argc, argv); + ORB_var orb = ORB_init(convert.get_argc(), convert.get_ASCII_argv()); Object_var obj = orb->resolve_initial_references ("Test"); test_var test = test::_narrow (obj.in ()); @@ -34,12 +37,12 @@ main (int argc, char* argv[]) Long n = test->get (); Long m = test->get (); assertTrue (m == n + 1); - + ACE_DEBUG ((LM_DEBUG, "All tests ran successfully.\n")); return 0; - } - catch (CORBA::Exception& e) + } + catch (CORBA::Exception& e) { ACE_PRINT_EXCEPTION (e, "test:"); } |