summaryrefslogtreecommitdiff
path: root/tests/DLL_Test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/DLL_Test.cpp')
-rw-r--r--tests/DLL_Test.cpp22
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;
}