diff options
author | dhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-05-17 21:49:04 +0000 |
---|---|---|
committer | dhinton <dhinton@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 2003-05-17 21:49:04 +0000 |
commit | b1e7304b4fa05fcaa09753a9e77fa2dca85fe09e (patch) | |
tree | f6f6d6c005bf2d97bdb450d27bb26fa461ac3d90 /tests/Config_Test.cpp | |
parent | e83a1631cd3ba3acab4d3583b3428f15ee0b29ac (diff) | |
download | ATCD-dre_030425.tar.gz |
ChangeLogTag:Sat May 17 19:31:43 UTC 2003 Don Hinton <dhinton@dresystems.com>dre_030425
Diffstat (limited to 'tests/Config_Test.cpp')
-rw-r--r-- | tests/Config_Test.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/tests/Config_Test.cpp b/tests/Config_Test.cpp index 5654ecaf43d..adc853ae3d4 100644 --- a/tests/Config_Test.cpp +++ b/tests/Config_Test.cpp @@ -654,14 +654,14 @@ build_config_object (ACE_Configuration& cfg) data, 80)) return -15; - + ACE_TString string((ACE_TCHAR*) 0);// = '0'; // Try to set the unnamed, default value. if (cfg.set_string_value (LoggerSection, 0,//string.c_str (),//0, //ACE_TEXT ("x"), ACE_TString (ACE_TEXT ("some string")))) - ACE_ERROR_RETURN ((LM_ERROR, - ACE_TEXT ("could not set value with null name\n")), + ACE_ERROR_RETURN ((LM_ERROR, + ACE_TEXT ("could not set value with null name\n")), -16); ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("here\n"))); @@ -671,12 +671,12 @@ build_config_object (ACE_Configuration& cfg) if (cfg.get_string_value (LoggerSection, name.c_str (), //0, //ACE_TEXT ("x"), string)) - ACE_ERROR_RETURN ((LM_ERROR, + ACE_ERROR_RETURN ((LM_ERROR, ACE_TEXT ("error using ACE_TString::c_str() == %d, len == %d\n"), - name.c_str(), name.length ()), + name.c_str(), name.length ()), -17); - ACE_DEBUG ((LM_DEBUG, + ACE_DEBUG ((LM_DEBUG, ACE_TEXT ("the value for the unnamed var=(%s)\n"), string.c_str ())); @@ -707,10 +707,10 @@ Config_Test::testEquality () } // populate them equally - if (build_config_object (heap1) != 0 || + if (build_config_object (heap1) != 0 || build_config_object (heap2) != 0) - ACE_ERROR_RETURN ((LM_ERROR, - ACE_TEXT ("could not build config object\n")), + ACE_ERROR_RETURN ((LM_ERROR, + ACE_TEXT ("could not build config object\n")), -1); // test equality @@ -1425,7 +1425,7 @@ Config_Test::get_section_boolean (ACE_Configuration& config, } int -ACE_TMAIN (int, ACE_TCHAR *[]) +run_main (int, ACE_TCHAR *[]) { ACE_START_TEST (ACE_TEXT ("Config_Test")); int errors = 0; |