Compile fixes
[ACE_TAO.git] / ACE / tests / Bug_3505_Regression_Test.cpp
blob291fd895f660ebb284fdbb48a8a071b998f703f6
1 // ============================================================================
2 //
3 // = LIBRARY
4 // tests
5 //
6 // = DESCRIPTION
7 // Test bugzilla 3505
8 //
9 // = AUTHOR
10 // Johnny Willemsen <jwillemsen@remedy.nl>
12 // ============================================================================
14 #include "ace/Service_Gestalt.h"
15 #include "test_config.h"
17 int
18 run_main (int, ACE_TCHAR *[])
20 ACE_START_TEST (ACE_TEXT ("Bug_3505_Regression_Test"));
21 const int test_argc_size2 = 5;
22 int arg2 = test_argc_size2;
23 const ACE_TCHAR *args2[test_argc_size2] = {
24 ACE_TEXT ("\\network\\temp\\ACE\\wince6\\ACE_wrappers\\TAO\\tests\\Hello\\server"),
25 ACE_TEXT ("-ORBDebugLevel"),
26 ACE_TEXT ("-0"),
27 ACE_TEXT ("-o"),
28 ACE_TEXT ("\\network\\temp\\ACE\\wince6\\ACE_wrappers/TAO\\tests\\Hello/server.ior")
31 // Make sure ACE debug is false
32 ACE::debug (false);
34 ACE_Service_Gestalt gestalt;
35 gestalt.parse_args (arg2, const_cast<ACE_TCHAR**>(args2));
37 if (ACE::debug ())
39 ACE_ERROR_RETURN ((LM_ERROR,
40 ACE_TEXT ("ACE debug has been enabled by the service gestalt\n")), -1);
43 ACE_END_TEST;
44 return 0;