summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-12 19:43:56 +0000
committerkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-12 19:43:56 +0000
commitedb5c75e3851976599528dc1b34e5e353db39f23 (patch)
treece78c5ac1818053c1c3b859c471f1f2e905459c8
parentdd084c44cf9bdc9598188f28d920137277645b1b (diff)
downloadATCD-edb5c75e3851976599528dc1b34e5e353db39f23.tar.gz
Shifted teh START_TEST before the #ifdefs.
-rw-r--r--tests/DLL_Test.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/DLL_Test.cpp b/tests/DLL_Test.cpp
index 368b02e214e..0cdb43edf5c 100644
--- a/tests/DLL_Test.cpp
+++ b/tests/DLL_Test.cpp
@@ -94,40 +94,40 @@ main (int argc, char *argv[])
ACE_UNUSED_ARG (argc);
ACE_UNUSED_ARG (argv);
+ ACE_START_TEST ("DLL_Test");
+
// Protection against this test being run on platforms not supporting Dlls.
#if defined (ACE_WIN32) || defined (ACE_HAS_SVR4_DYNAMIC_LINKING) || \
defined (__hpux)
-
- ACE_START_TEST ("DLL_Test");
-
- ACE_DLL dll;
-
- int retval = dll.open (OBJ_PREFIX "DLL_Test" OBJ_SUFFIX);
+
+ 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;
}