diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-29 22:28:42 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-05-29 22:28:42 +0000 |
commit | 32c514961a1de40555b92aa006dc4020ce9ff2dc (patch) | |
tree | 56c0d01dcbb84d6541e9399181f1164246af309a /tests/DLL_Test.cpp | |
parent | a441745a055cb982ec3f95de00aef6ca69dec10d (diff) | |
download | ATCD-32c514961a1de40555b92aa006dc4020ce9ff2dc.tar.gz |
*** empty log message ***
Diffstat (limited to 'tests/DLL_Test.cpp')
-rw-r--r-- | tests/DLL_Test.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/tests/DLL_Test.cpp b/tests/DLL_Test.cpp index a6cd1f1775d..bffa8de38c0 100644 --- a/tests/DLL_Test.cpp +++ b/tests/DLL_Test.cpp @@ -76,36 +76,36 @@ main (int argc, char *argv[]) // Protection against this test being run on platforms not supporting Dlls. #if defined (ACE_WIN32) || defined (ACE_HAS_SVR4_DYNAMIC_LINKING) || \ - defined (__hpux) - - ACE_DLL dll; - - int retval = dll.open (OBJ_PREFIX "DLL_Test" OBJ_SUFFIX); + defined (__hpux) + + ACE_DLL dll; + + int retval = dll.open (OBJ_PREFIX "DLL_Test" OBJ_SUFFIX); if (retval != 0) ACE_ERROR_RETURN ((LM_ERROR, "%p\n", dll.error ()), -1); - + TC f = (TC) dll.symbol ("get_hello"); - + if (f == 0) ACE_ERROR_RETURN ((LM_ERROR, "%p\n", dll.error ()), -1); - + auto_ptr<Hello> my_hello (f ()); - + // Make the method calls, as the object pointer is available. my_hello->say_hello (); my_hello->say_next (); - + #else ACE_ERROR ((LM_INFO, ASYS_TEXT ("Dynamically Linkable Libraries not supported on this platform\n"))); #endif /* ACE_WIN32 || ACE_HAS_SVR4_DYNAMIC_LINKING || __hpux */ - + ACE_END_TEST; return 0; } |