Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/tests/lib/libc/sync If we don't have 64 bit atomic ops, also...



details:   https://anonhg.NetBSD.org/src/rev/435223a91cca
branches:  trunk
changeset: 803081:435223a91cca
user:      martin <martin%NetBSD.org@localhost>
date:      Sun Oct 12 12:26:41 2014 +0000

description:
If we don't have 64 bit atomic ops, also do not test "long long" and intmax_t
(and friends).

diffstat:

 tests/lib/libc/sync/cpp_atomic_ops_linkable.cc |  6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diffs (29 lines):

diff -r 78fc8cfc14c9 -r 435223a91cca tests/lib/libc/sync/cpp_atomic_ops_linkable.cc
--- a/tests/lib/libc/sync/cpp_atomic_ops_linkable.cc    Sun Oct 12 12:14:43 2014 +0000
+++ b/tests/lib/libc/sync/cpp_atomic_ops_linkable.cc    Sun Oct 12 12:26:41 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cpp_atomic_ops_linkable.cc,v 1.2 2014/10/11 17:46:58 martin Exp $ */
+/* $NetBSD: cpp_atomic_ops_linkable.cc,v 1.3 2014/10/12 12:26:41 martin Exp $ */
 
 /*-
  * Copyright (c) 2014 The NetBSD Foundation, Inc.
@@ -69,8 +69,10 @@
   ATest<unsigned int>();
   ATest<long>();
   ATest<unsigned long>();
+#ifdef __HAVE_ATOMIC64_OPS
   ATest<long long>();
   ATest<unsigned long long>();
+#endif
   ATest<char16_t>();
   ATest<char32_t>();
   ATest<wchar_t>();
@@ -98,6 +100,8 @@
   ATest<uintptr_t>();
   ATest<std::size_t>();
   ATest<std::ptrdiff_t>();
+#ifdef __HAVE_ATOMIC64_OPS
   ATest<intmax_t>();
   ATest<uintmax_t>();
+#endif
 }



Home | Main Index | Thread Index | Old Index