Merge pull request #2309 from mitza-oci/warnings
[ACE_TAO.git] / ACE / tests / Bug_3334_Regression_Test.cpp
blob4631ead5bb7086fe5f255689798426df4dec0a80
1 // ============================================================================
2 //
3 // = LIBRARY
4 // tests
5 //
6 // = DESCRIPTION
7 // This test exercises ACE_Service_Config SEGV during shutdown when
8 // Modules get double deleted. Once by Stream parent,
9 // once by ACE_Service_Repository
11 // = AUTHOR
12 // Chad Beaulac <chad@objectivesolutions.com>
14 // ============================================================================
16 #include "test_config.h"
17 #include "ace/Log_Msg.h"
18 #include "ace/Service_Config.h"
21 int
22 run_main (int, ACE_TCHAR *argv[])
24 ACE_START_TEST (ACE_TEXT ("Bug_3334_Regression_Test"));
26 ACE_TCHAR *_argv[3] = { argv[0],
27 const_cast<ACE_TCHAR*> (ACE_TEXT ("-f")),
28 const_cast<ACE_TCHAR*>
29 (ACE_TEXT ("Bug_3334_Regression_Test.conf")) };
30 int status = 0;
31 if ((status = ACE_Service_Config::open (3,
32 _argv,
33 ACE_DEFAULT_LOGGER_KEY,
34 true,
35 true /*ignore def svc.conf*/)) == -1)
36 ACE_ERROR ((LM_ERROR,
37 ACE_TEXT ("%p\n"),
38 ACE_TEXT ("open"),
39 1));
41 ACE_Service_Config::fini_svcs ();
43 ACE_END_TEST;
44 return status;