summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-11 16:25:41 +0000
committerkirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1999-03-11 16:25:41 +0000
commit1cf3ad8ea5a6c82a2d583c8557b50be9d56315cf (patch)
tree10283761735b0bca380352ca0ce2f0ebdfcdc297
parent278df8f783a4236d761bc83940708b76c8f83147 (diff)
downloadATCD-1cf3ad8ea5a6c82a2d583c8557b50be9d56315cf.tar.gz
Allowed the main to be accessed by all platforms.
-rw-r--r--tests/DLL_Test.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/tests/DLL_Test.cpp b/tests/DLL_Test.cpp
index c053f3ef3ea..368b02e214e 100644
--- a/tests/DLL_Test.cpp
+++ b/tests/DLL_Test.cpp
@@ -88,16 +88,16 @@ Hello *get_hello (void)
typedef Hello *(*TC) (void);
-// Protection against this test being run individually.
-#if defined (ACE_WIN32) || defined (ACE_HAS_SVR4_DYNAMIC_LINKING) || \
- defined (__hpux)
-
int
main (int argc, char *argv[])
{
ACE_UNUSED_ARG (argc);
ACE_UNUSED_ARG (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_START_TEST ("DLL_Test");
ACE_DLL dll;
@@ -123,10 +123,15 @@ main (int argc, char *argv[])
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;
}
-#endif /* ACE_WIN32 || ACE_HAS_SVR4_DYNAMIC_LINKING || __hpux */
+
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class auto_ptr <Hello>;