diff options
author | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-12-27 12:42:53 +0000 |
---|---|---|
committer | schmidt <douglascraigschmidt@users.noreply.github.com> | 2001-12-27 12:42:53 +0000 |
commit | b9c54380f6c53350ac1232023cf1178cdf324e1f (patch) | |
tree | dabe862b7a0c48d062f52f9b7e7b1a3a182e6652 /tests | |
parent | 1df071fbb7d541b5efc15b1c6a1e73b47417b1f2 (diff) | |
download | ATCD-b9c54380f6c53350ac1232023cf1178cdf324e1f.tar.gz |
ChangeLogTag:Thu Dec 27 06:41:24 2001 Douglas C. Schmidt <schmidt@macarena.cs.wustl.edu>
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Proactor_Timer_Test.cpp | 31 |
1 files changed, 29 insertions, 2 deletions
diff --git a/tests/Proactor_Timer_Test.cpp b/tests/Proactor_Timer_Test.cpp index c215d0aedc5..62ee8c047a2 100644 --- a/tests/Proactor_Timer_Test.cpp +++ b/tests/Proactor_Timer_Test.cpp @@ -21,6 +21,15 @@ // ============================================================================ #include "test_config.h" + +ACE_RCSID (tests, + Proactor_Timer_Test, + "$Id$") + +#if ((defined (ACE_WIN32) && !defined (ACE_HAS_WINCE)) || (defined (ACE_HAS_AIO_CALLS))) + // This only works on Win32 platforms and on Unix platforms + // supporting POSIX aio calls. + #include "ace/Timer_Queue.h" #include "ace/Proactor.h" #include "ace/High_Res_Timer.h" @@ -50,8 +59,8 @@ private: // Stores the id of this timer. }; -Time_Handler::Time_Handler () -: timer_id_ (-1) +Time_Handler::Time_Handler (void) + : timer_id_ (-1) { // Nothing } @@ -215,3 +224,21 @@ main (int argc, ACE_TCHAR *[]) ACE_END_TEST; return 0; } + +#else + +int +main (int, ACE_TCHAR *[]) +{ + ACE_START_TEST (ACE_TEXT ("Proactor_Timer_Test")); + + ACE_DEBUG ((LM_INFO, + ACE_TEXT ("Asynchronous IO is unsupported.\n") + ACE_TEXT ("Proactor_Timer_Test will not be run."))); + + ACE_END_TEST; + + return 0; +} + +#endif /* ACE_WIN32 && !ACE_HAS_WINCE || ACE_HAS_AIO_CALLS */ |