2 * @file Bug_3319_Regression_Test.cpp
4 * Reproduces the problems reported in bug 2975:
5 * http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=3319
9 #include "test_config.h"
10 #include "ace/Service_Config.h"
12 #include "ace/Log_Msg.h"
15 run_main (int, ACE_TCHAR
*[])
17 ACE_START_TEST (ACE_TEXT ("Bug_3319_Regression_Test"));
19 ACE_Log_Msg
*log_msg
= ACE_LOG_MSG
;
21 args
.add (ACE_TEXT("MyProgram"), true);
22 int ret
= ACE_Service_Config::open(args
.argc(), args
.argv(),
23 ACE_DEFAULT_LOGGER_KEY
,
26 if (ACE_OS::strcmp (log_msg
->program_name (), ACE_TEXT("MyProgram")) != 0)
28 ACE_ERROR_RETURN ((LM_ERROR
,
29 ACE_TEXT ("Program name is not <MyProgram> but <%s>\n"),
30 ACE_Log_Msg::program_name ()),