diff options
author | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-11 16:25:41 +0000 |
---|---|---|
committer | kirthika <kirthika@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1999-03-11 16:25:41 +0000 |
commit | ec5c6a86762a48053b23b55eaf1ccee0a5110dda (patch) | |
tree | 10283761735b0bca380352ca0ce2f0ebdfcdc297 /tests/DLL_Test.cpp | |
parent | 6be1cabb88c4964af70759f1ff3dd4467b43a475 (diff) | |
download | ATCD-ec5c6a86762a48053b23b55eaf1ccee0a5110dda.tar.gz |
Allowed the main to be accessed by all platforms.
Diffstat (limited to 'tests/DLL_Test.cpp')
-rw-r--r-- | tests/DLL_Test.cpp | 15 |
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>; |