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.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/tests/DLL_Test.cpp b/tests/DLL_Test.cpp
index 5222199b47b..d76a8140489 100644
--- a/tests/DLL_Test.cpp
+++ b/tests/DLL_Test.cpp
@@ -88,8 +88,14 @@ Hello *get_hello (void)
typedef Hello *(*TC) (void);
-#if defined (ACE_WIN32)
+// Protection against this test being run individually.
+#if defined (ACE_WIN32)
+#define RUN_MAIN
#elif defined (ACE_HAS_SVR4_DYNAMIC_LINKING)
+#define RUN_MAIN
+#endif
+
+#if defined RUN_MAIN
int
main (int argc, char *argv[])
{
@@ -124,7 +130,7 @@ main (int argc, char *argv[])
ACE_END_TEST;
return 0;
}
-#endif /* ACE_WIN32 || ACE_HAS_SVR4_DYNAMIC_LINKING */
+#endif /* RUN_MAIN */
#if defined (ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION)
template class auto_ptr <Hello>;