diff options
Diffstat (limited to 'tests/Semaphore_Test.cpp')
-rw-r--r-- | tests/Semaphore_Test.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/Semaphore_Test.cpp b/tests/Semaphore_Test.cpp index 49cd5b7b382..191abd3285f 100644 --- a/tests/Semaphore_Test.cpp +++ b/tests/Semaphore_Test.cpp @@ -26,7 +26,13 @@ ACE_RCSID(tests, Semaphore_Test, "$Id$") // msec that times are allowed to differ before test fails. -#define ACE_ALLOWED_SLACK 100 +#if defined (ACE_HAS_HI_RES_TIMER) || defined (ACE_HAS_AIX_HI_RES_TIMER) || \ + defined (ACE_HAS_PENTIUM) || defined (ACE_HAS_ALPHA_TIMER) || \ + defined (ACE_HAS_POWERPC_TIMER) +# define ACE_ALLOWED_SLACK 100 +#else /* don't have a high-res timer */ +# define ACE_ALLOWED_SLACK 1100 +#endif /* don't have a high-res timer */ // Test results, 'success' is 0 static int test_result = 0; |