summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-07-28 15:36:48 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2000-07-28 15:36:48 +0000
commit755ce9423f142d6c4126d2d4c73b829052b6aa3c (patch)
treea5f5ed72a3aa1ecd6da69c7409427f82230f9fb8 /tests
parent6c241dd43978e25a9ebf94ea5ab70250bf412e62 (diff)
downloadATCD-755ce9423f142d6c4126d2d4c73b829052b6aa3c.tar.gz
ChangeLogTag: Fri Jul 28 10:34:01 2000 David L. Levine <levine@cs.wustl.edu>
Diffstat (limited to 'tests')
-rw-r--r--tests/Semaphore_Test.cpp8
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;