File: Bug_3505_Regression_Test.cpp

package info (click to toggle)
ace 8.0.5%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 47,088 kB
  • sloc: cpp: 342,864; perl: 31,902; sh: 1,963; python: 532; yacc: 524; xml: 330; lex: 158; lisp: 116; makefile: 85; csh: 20; ansic: 19; tcl: 5
file content (45 lines) | stat: -rw-r--r-- 1,163 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// ============================================================================
//
// = LIBRARY
//    tests
//
// = DESCRIPTION
//    Test bugzilla 3505
//
// = AUTHOR
//    Johnny Willemsen <jwillemsen@remedy.nl>
//
// ============================================================================

#include "ace/Service_Gestalt.h"
#include "test_config.h"

int
run_main (int, ACE_TCHAR *[])
{
  ACE_START_TEST (ACE_TEXT ("Bug_3505_Regression_Test"));
  const int test_argc_size2 = 5;
  int arg2 = test_argc_size2;
  const ACE_TCHAR *args2[test_argc_size2] = {
    ACE_TEXT ("\\network\\temp\\ACE\\wince6\\ACE_wrappers\\TAO\\tests\\Hello\\server"),
    ACE_TEXT ("-ORBDebugLevel"),
    ACE_TEXT ("-0"),
    ACE_TEXT ("-o"),
    ACE_TEXT ("\\network\\temp\\ACE\\wince6\\ACE_wrappers/TAO\\tests\\Hello/server.ior")
  };

  // Make sure ACE debug is false
  ACE::debug (false);

  ACE_Service_Gestalt gestalt;
  gestalt.parse_args (arg2, const_cast<ACE_TCHAR**>(args2));

  if (ACE::debug ())
    {
      ACE_ERROR_RETURN ((LM_ERROR,
                        ACE_TEXT ("ACE debug has been enabled by the service gestalt\n")), -1);
    }

  ACE_END_TEST;
  return 0;
}