• Home
  • History
  • Annotate
  • only in /external/libcxx/test/atomics/atomics.types.generic/
History log of /external/libcxx/test/atomics/atomics.types.generic/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
6f56ab789cb470620554d624c37f488285b3b04e 06-May-2014 Dan Albert <danalbert@google.com> Adds a basic test wrapper for Android

To run libc++ tests:
$ mm
$ adb sync
$ python runtests.py # runs all host and device tests
# see main() for command line options

To regenerate all makefiles:
$ python makemake.py

Change-Id: Ibad78ad8e1bd45f32730d281afa53c2cec55478f
ndroid.mk
74f4da7219100afcff4baab33d12910d29eb127e 02-May-2013 Howard Hinnant <hhinnant@apple.com> Stephan Tolksdorf: fixes the issue in the <atomic> header and adds corresponding tests. I've used macros to fall back to a user-provided default constructor if _LIBCPP_HAS_NO_DEFAULTED_FUNCTIONS (though I suspect that there won't be many users defining that macro).

The tests use placement new to check that atomic values get properly zero-initialized. I had to modify the atomic_is_lock_free test, because default initialization of an object of const type 'const A' (aka 'const atomic<int>') requires a user-provided default constructor.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@180945 91177308-0d34-0410-b5e6-96231b3b80d8
ddress.pass.cpp
ool.pass.cpp
ntegral.pass.cpp
6ae47055f958b95e1ab941b5209d6f6b91c3aed1 04-Jan-2013 Howard Hinnant <hhinnant@apple.com> atomic_bool was missing (just a typedef to atomic<bool>).

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@171498 91177308-0d34-0410-b5e6-96231b3b80d8
ool.pass.cpp
9efdc0bd5f22b3d6815862ddb14dbd4aed5042f0 19-Apr-2012 Richard Smith <richard-llvm@metafoo.co.uk> libc++: Add some missing #includes to atomics tests. libc++ doesn't need these
at the moment, but they allow these tests to be used to test clang against
libstdc++. Add myself to the credits file, as suggested by Howard.


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@155085 91177308-0d34-0410-b5e6-96231b3b80d8
ddress.pass.cpp
stdint_typedefs.pass.cpp
d3eca759a2ce3125613fb840287c77ee1f372b10 05-Apr-2012 David Chisnall <csdavec@swan.ac.uk> Fix the remaining atomic tests, all of which were wrong for the case where a
compare-and-exchange failed (it should update the expected value to the current
value, and the tests were checking that it didn't...).

Results of the atomics part of the test suite on FreeBSD with clang trunk and
the atomic.c from compiler-rt (currently kludged into the test, not installed
properly):

****************************************************
Results for /root/libc++/test/atomics:
using clang version 3.1 (trunk 153415)
Target: x86_64-unknown-freebsd10.0
Thread model: posix
with -std=c++0x -stdlib=libc++ -pthread /tmp/atomic.o
----------------------------------------------------
sections without tests : 0
sections with failures : 0
sections without failures: 14
+ ----
total number of sections : 14
----------------------------------------------------
number of tests failed : 0
number of tests passed : 52
+ ----
total number of tests : 52
****************************************************

Yay!



git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@154095 91177308-0d34-0410-b5e6-96231b3b80d8
ddress.pass.cpp
ool.pass.cpp
ntegral.pass.cpp
770d1c4ea75402457c5ed3895b5ec044defce01c 08-Dec-2010 Howard Hinnant <hhinnant@apple.com> After a long break to wait for the atomic spec to settle, this completes the library part of <atomic>. It currently won't even parse as it depends on the existence of the intrinsics specified at http://libcxx.llvm.org/atomic_design_a.html. Everything has been tested using fake intrinsics which have now been removed. As the intrinsics come online, the ATOMIC_* macros will need to be adjusted to reflect which operations are lock-free. These macros will probably need to be #ifdef'd for each supported platform.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@121267 91177308-0d34-0410-b5e6-96231b3b80d8
stdint_typedefs.pass.cpp
ntegral_typedefs.pass.cpp
f02417b600ee58299effa60b5ffd9d58b8bc3129 08-Dec-2010 Howard Hinnant <hhinnant@apple.com> atomics ...

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@121202 91177308-0d34-0410-b5e6-96231b3b80d8
ddress.pass.cpp
tomics.types.address/address.pass.cpp
tomics.types.integral/bool.pass.cpp
tomics.types.integral/integral.pass.cpp
ool.pass.cpp
ntegral.pass.cpp
othing_to_do.pass.cpp
17c3a8104822a4ff5f0459440e678195975f3321 23-Nov-2010 Howard Hinnant <hhinnant@apple.com> Update testsuite strucuture to latest draft

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@120043 91177308-0d34-0410-b5e6-96231b3b80d8
tomics.types.address/address.pass.cpp
tomics.types.integral/bool.pass.cpp
tomics.types.integral/integral.pass.cpp
othing_to_do.pass.cpp