diff options
author | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-05-06 06:29:52 +0000 |
---|---|---|
committer | Johnny Willemsen <jwillemsen@remedy.nl> | 2007-05-06 06:29:52 +0000 |
commit | 5b4a98766e7972c0fb7791a86be5f0711a1936ae (patch) | |
tree | a47ed190a8892d8e403c567541adc53360a859a8 /ACE/tests | |
parent | 0a17c6562dd1a13c45bd871c6566fe5fa9cb7620 (diff) | |
download | ATCD-5b4a98766e7972c0fb7791a86be5f0711a1936ae.tar.gz |
Diffstat (limited to 'ACE/tests')
-rw-r--r-- | ACE/tests/Bug_2610_Regression_Test.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/ACE/tests/Bug_2610_Regression_Test.cpp b/ACE/tests/Bug_2610_Regression_Test.cpp index bad3595336c..33c477f7002 100644 --- a/ACE/tests/Bug_2610_Regression_Test.cpp +++ b/ACE/tests/Bug_2610_Regression_Test.cpp @@ -25,6 +25,8 @@ ACE_RCSID (tests, #include "ace/SOCK_Connector.h" #include "ace/Thread_Semaphore.h" +#if defined (ACE_HAS_THREADS) + # define TRACE(X) ACE_Trace ____ (ACE_LIB_TEXT (X), __LINE__, ACE_LIB_TEXT (__FILE__)) int g_svc_handlers_leaked = 0; @@ -125,11 +127,15 @@ struct Timer_Handler : public ACE_Event_Handler } }; +#endif + int run_main (int, ACE_TCHAR *[]) { ACE_START_TEST (ACE_TEXT ("Bug_2610_Regression_Test")); +#if defined (ACE_HAS_THREADS) + My_Acceptor acceptor; Timer_Handler timer_handler; ACE_Reactor::instance()->schedule_timer( @@ -182,6 +188,11 @@ run_main (int, ACE_TCHAR *[]) ACE_TEXT("Svc_Handler leakage detected, %d objects\n")), g_svc_handlers_leaked); } +#else + ACE_ERROR ((LM_INFO, + ACE_TEXT ("threads not supported on this platform\n"))); +#endif + ACE_END_TEST; return 0; |