2 * @file Bug_1576_Regression_Test.cpp
4 * Reproduces the problems reported in bug 1576:
5 * http://bugzilla.dre.vanderbilt.edu/show_bug.cgi?id=1576
7 * @author Carlos O'Ryan <coryan@atdesk.com>
10 #include "test_config.h"
14 run_main (int, ACE_TCHAR
*[])
16 ACE_START_TEST (ACE_TEXT ("Bug_1576_Regression_Test"));
20 const ACE_TCHAR
* dll_name
= ACE_TEXT ("NOT_A_DLL") ACE_DLL_SUFFIX
;
22 // Normally applications should check the return value, but if they
24 int result
= dll
.open (dll_name
);
28 // Use dll.error() is you want to get the error text, but we don't this in
29 // this test because else the error is shown on the scoreboard
31 ACE_TEXT ("Load failed, as expected\n")));
36 ACE_TEXT ("Success loading %s ? It should have failed!\n"),
40 // ... and then use the DLL library, the program crashes (instead of
41 // just getting an error ...
42 void * symbol
= dll
.symbol (ACE_TEXT ("SHOULD_CRASH"));
46 // Use dll.error() is you want to get the error text, but we don't this in
47 // this test because else the error is shown on the scoreboard
49 ACE_TEXT ("Symbol lookup failed, as expected\n")));
54 ACE_TEXT ("Found symbol ? It should have failed!\n")));