From 01b2816357c28474cbb3eb18304aea3786eade5e Mon Sep 17 00:00:00 2001 From: Ossama Othman Date: Fri, 29 Aug 2003 05:31:11 +0000 Subject: ChangeLogTag:Thu Aug 28 22:29:03 2003 Ossama Othman --- ChangeLog | 7 +++++++ tests/Bug_1576_Regression_Test.cpp | 12 ++++++------ 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5f481003dcc..01ff9c02593 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +Thu Aug 28 22:29:03 2003 Ossama Othman + + From Don Hinton + * tests/Bug_1576_Regression_Test.cpp: + + Updated to work in wchar builds. + Thu Aug 28 07:57:33 2003 Chad Elliott * bin/MakeProjectCreator/modules/Driver.pm: diff --git a/tests/Bug_1576_Regression_Test.cpp b/tests/Bug_1576_Regression_Test.cpp index c0bff1eff6a..d389d83a440 100644 --- a/tests/Bug_1576_Regression_Test.cpp +++ b/tests/Bug_1576_Regression_Test.cpp @@ -23,7 +23,7 @@ run_main (int, ACE_TCHAR *[]) ACE_DLL dll; - char const dll_name[] = "NOT_A_DLL.so"; + const ACE_TCHAR * dll_name = ACE_TEXT ("NOT_A_DLL.so"); // Normally applications should check the return value, but if they // ignore it... @@ -32,30 +32,30 @@ run_main (int, ACE_TCHAR *[]) if(result == -1) { ACE_DEBUG ((LM_DEBUG, - "Load failed, as expected (%s)\n", + ACE_TEXT ("Load failed, as expected (%s)\n"), dll.error ())); } else { ACE_ERROR((LM_ERROR, - "Success loading %s ? It should have failed!\n", + ACE_TEXT ("Success loading %s ? It should have failed!\n"), dll_name)); } // ... and then use the DLL library, the program crashes (instead of // just getting an error ... - void * symbol = dll.symbol ("SHOULD_CRASH"); + void * symbol = dll.symbol (ACE_TEXT ("SHOULD_CRASH")); if(symbol == 0) { ACE_DEBUG((LM_DEBUG, - "Symbol lookup failed, as expected (%s)\n", + ACE_TEXT ("Symbol lookup failed, as expected (%s)\n"), dll.error ())); } else { ACE_ERROR ((LM_ERROR, - "Found symbol ? It should have failed!\n")); + ACE_TEXT ("Found symbol ? It should have failed!\n"))); } ACE_END_TEST; -- cgit v1.2.1