summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-18 21:30:04 +0000
committerlevine <levine@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>1997-09-18 21:30:04 +0000
commite2bd28843f3928ab9bab6723496b0854013c7a27 (patch)
tree8964d591ab7936fd635958d492b83328a5dd27f9 /tests
parent99bd198ff99929a96582ceb0255f0635ce943b34 (diff)
downloadATCD-e2bd28843f3928ab9bab6723496b0854013c7a27.tar.gz
disable ACE_U_LongLong test except on Solaris
Diffstat (limited to 'tests')
-rw-r--r--tests/Time_Value_Test.cpp36
1 files changed, 19 insertions, 17 deletions
diff --git a/tests/Time_Value_Test.cpp b/tests/Time_Value_Test.cpp
index 68481639bef..73f7bd04477 100644
--- a/tests/Time_Value_Test.cpp
+++ b/tests/Time_Value_Test.cpp
@@ -22,28 +22,30 @@
// Note, for this test the config.h file *must* come first!
#include "ace/config.h"
-// Force test of ACE_U_LongLong class on all platforms, except ACE_WIN32.
-// (ACE_U_LongLong isn't used on ACE_WIN32.)
-#if defined (ACE_HAS_HI_RES_TIMER) || defined (ACE_HAS_LONGLONG_T)
+#if defined (ACE_HAS_STHREADS)
+// Force test of ACE_U_LongLong class on Solaris only, just so we
+// know that its well-tested.
+# if defined (ACE_HAS_HI_RES_TIMER) || defined (ACE_HAS_LONGLONG_T)
-# if defined (ACE_HAS_HI_RES_TIMER)
-# undef ACE_HAS_HI_RES_TIMER
-# endif /* ACE_HAS_HI_RES_TIMER */
+# if defined (ACE_HAS_HI_RES_TIMER)
+# undef ACE_HAS_HI_RES_TIMER
+# endif /* ACE_HAS_HI_RES_TIMER */
-# if defined (ACE_HAS_LONGLONG_T)
-# undef ACE_HAS_LONGLONG_T
-# endif /* ACE_HAS_LONGLONG_T */
+# if defined (ACE_HAS_LONGLONG_T)
+# undef ACE_HAS_LONGLONG_T
+# endif /* ACE_HAS_LONGLONG_T */
- // Force inlining, in case ACE_U_LongLong member function
- // definitions are not in libACE.
-# define __ACE_INLINE__
+ // Force inlining, in case ACE_U_LongLong member function
+ // definitions are not in libACE.
+# define __ACE_INLINE__
-#endif /* ACE_HAS_HI_RES_TIMER || ACE_HAS_LONGLONG_T */
+# endif /* ACE_HAS_HI_RES_TIMER || ACE_HAS_LONGLONG_T */
+#endif /* ACE_HAS_STHREADS */
#include "test_config.h"
#include "ace/ACE.h"
-#if ! defined (ACE_WIN32)
+#if defined (ACE_HAS_STHREADS)
u_long
test_ace_u_longlong ()
{
@@ -89,7 +91,7 @@ test_ace_u_longlong ()
return errors;
}
-#endif /* ACE_WIN32 */
+#endif /* ACE_HAS_STHREADS */
int
@@ -119,9 +121,9 @@ main (int, char *[])
ACE_ASSERT (tv6 == tv1);
ACE_ASSERT (tv5 == tv7);
-#if ! defined (ACE_WIN32)
+#if defined (ACE_HAS_STHREADS)
if (test_ace_u_longlong () != 0) ++ret;
-#endif /* ACE_WIN32 */
+#endif /* ACE_HAS_STHREADS */
ACE_END_TEST;
return ret;