diff options
author | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-10-16 23:19:20 +0000 |
---|---|---|
committer | irfan <irfan@ae88bc3d-4319-0410-8dbf-d08b4c9d3795> | 1997-10-16 23:19:20 +0000 |
commit | 68f39e776a33323b60b71fb7df917edf91cfe904 (patch) | |
tree | 88056425caab3c76023207229203d7bc60e72bbf | |
parent | fe78fd0812f32f33df35cced121eb884d2ded0b7 (diff) | |
download | ATCD-68f39e776a33323b60b71fb7df917edf91cfe904.tar.gz |
*** empty log message ***
-rw-r--r-- | tests/Notify_Performance_Test.cpp | 23 | ||||
-rw-r--r-- | tests/Reactor_Performance_Test.cpp | 23 |
2 files changed, 30 insertions, 16 deletions
diff --git a/tests/Notify_Performance_Test.cpp b/tests/Notify_Performance_Test.cpp index a8e25879da0..c3158933831 100644 --- a/tests/Notify_Performance_Test.cpp +++ b/tests/Notify_Performance_Test.cpp @@ -85,8 +85,6 @@ client (void *arg) return 0; } -#endif /* ACE_HAS_THREADS */ - // Sets up the correct reactor (based on platform and options) void create_reactor (void) @@ -141,8 +139,6 @@ main (int argc, char *argv[]) { ACE_START_TEST ("Notify_Performance_Test"); -#if defined (ACE_HAS_THREADS) - ACE_Get_Opt getopt (argc, argv, "swdc:l:", 1); for (int c; (c = getopt ()) != -1; ) switch (c) @@ -207,10 +203,6 @@ main (int argc, char *argv[]) // Wait for all worker to get done. ACE_Thread_Manager::instance ()->wait (); -#else - ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n")); -#endif /* ACE_HAS_THREADS */ - ACE_END_TEST; return 0; } @@ -228,3 +220,18 @@ template class ACE_Atomic_Op<ACE_Thread_Mutex, long>; #pragma instantiate ACE_Auto_Basic_Ptr<ACE_Reactor_Impl> #pragma instantiate ACE_Atomic_Op<ACE_Thread_Mutex, long> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + +#else +int +main (int, char *[]) +{ + ACE_START_TEST ("Notify_Performance_Test"); + + ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n")); + + ACE_END_TEST; + return 0; +} +#endif /* ACE_HAS_THREADS */ + + diff --git a/tests/Reactor_Performance_Test.cpp b/tests/Reactor_Performance_Test.cpp index 59ca3234ea8..a5d2f66e419 100644 --- a/tests/Reactor_Performance_Test.cpp +++ b/tests/Reactor_Performance_Test.cpp @@ -262,15 +262,11 @@ print_results (ACE_Profile_Timer::ACE_Elapsed_Time &et) et.system_time)); } -#endif /* ACE_HAS_THREADS */ - int main (int argc, char *argv[]) { ACE_START_TEST ("Reactor_Performance_Test"); -#if defined (ACE_HAS_THREADS) - ACE_Get_Opt getopt (argc, argv, "swc:l:", 1); for (int c; (c = getopt ()) != -1; ) switch (c) @@ -338,10 +334,6 @@ main (int argc, char *argv[]) ACE_Thread_Manager::instance ()->wait (); -#else - ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n")); -#endif /* ACE_HAS_THREADS */ - ACE_END_TEST; return 0; } @@ -377,3 +369,18 @@ template class ACE_Auto_Array_Ptr <ACE_INET_Addr>; #pragma instantiate ACE_Auto_Basic_Array_Ptr <ACE_INET_Addr> #pragma instantiate ACE_Auto_Array_Ptr <ACE_INET_Addr> #endif /* ACE_HAS_EXPLICIT_TEMPLATE_INSTANTIATION */ + +#else +int +main (int, char *[]) +{ + ACE_START_TEST ("Reactor_Performance_Test"); + + ACE_ERROR ((LM_ERROR, "threads not supported on this platform\n")); + + ACE_END_TEST; + return 0; +} +#endif /* ACE_HAS_THREADS */ + + |