• Home
  • History
  • Annotate
  • only in /external/libcxx/test/support/
History log of /external/libcxx/test/support/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
5cb52824fc2a0caf233311e91d9a2a53368f04ad 04-Mar-2015 Dan Albert <danalbert@google.com> Merge to upstream r231255.

Change-Id: Ia8ee1801b42943464b99f28b6a83647458f3efb5
ounter.h
oveOnly.h
onstexpr_char_traits.hpp
ount_new.hpp
asty_macros.hpp
ser_defined_integral.hpp
00ed9870d98b93d8a6438e5cf9058ebbe10dab01 13-Feb-2015 Dan Albert <danalbert@google.com> Fix error checking in get_temp_file_name().

Checking errno without first checking that the call failed means that
if some other call prior to mkstemp failed with EINVAL prior to this,
the assert would fire even if mkstemp succeeded. If something failed
with EEXIST, it would go in to an infinite loop.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@229035 91177308-0d34-0410-b5e6-96231b3b80d8
Change-Id: I512f29f2cb4b379e9f33e9bc12c060851152647c
latform_support.h
06086258d3d8c48a916ec51c33e1ad8f46821b81 07-Jan-2015 Dan Albert <danalbert@google.com> Merge to upstream r225300.

Change-Id: I2b23715db9ac129ff80aa78ad5824db0a4d6fbb3
ount_new.hpp
latform_support.h
7112dae6acac544a0271a85d95342c583441e2d1 21-Nov-2014 Dan Albert <danalbert@google.com> Merge to upstream r222492.

Change-Id: I6a0a6e90d217a69531ec3bb5ca0a367f39f4a1da
san_testing.h
ounting_predicates.hpp
est_iterators.h
ab4570387c186a91b7c51a7393cf2452bbf20ab4 06-Sep-2014 Dan Albert <danalbert@google.com> PR20546: Fix tests for compare_exchange_weak.

These calls are allowed to fail spuriously.

29.6.5.25:

Remark: A weak compare-and-exchange operation may fail spuriously.
That is, even when the contents of memory referred to by expected
and object are equal, it may return false and store back to expected
the same memory contents that were originally there. [ Note: This
spurious failure enables implementation of compare and-exchange on a
broader class of machines, e.g., load-locked store-conditional
machines. A consequence of spurious failure is that nearly all uses
of weak compare-and-exchange will be in a loop.

To fix this, we replace any assert() that expects
std::atomic::compare_exchange_weak() to return true with a loop. If the
call does not return true within N runs (with N currently equal to 10),
then the test fails.

http://llvm.org/bugs/show_bug.cgi?id=20546

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@217319 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit 7ba3c57565e6658d8265b028a61c5731cf899495)
Change-Id: I778eabaa50c4a0814af1ff810b5e9d77cc759dde
mpxchg_loop.h
90dc8dd841b975fccfa4a278b9b44065d3644839 26-Aug-2014 Dan Albert <danalbert@google.com> Update to upstream r216384.

This rebase skips the following patches in upstream:

+ 37025e1b32d44751243257975b9e3d45b2873266
Make the helper routines in string really be constexpr. This required a
bit of refacoring in algorithm as well. Give them better names while
we're at it. All of these are internal rotines; no visible functionality
change.

+ 164b297099f486abe42122fe1aefe7eb741b7acf
Implement string_view from the library fundamentals TS (n4023). Also
works in C++11 and 03, with reduced functionality (mostly in the area of
constexpr)

+ e4694b41295484e5c521d2c281de9330c6d60c79
Formatting improvements in the <string_view> synopsis suggested by
RSmith. No functionality change.

+ 3a61b30f3affb1ba9412793a0a570ac87e6d26b3
Minor cleanup for string_view; mostly from suggestions by Richard Smith.
Also, make the tests pass under c++03

+ 484728789ed4aee35e62c031cb3392a5982a5d0f
string_view enhancements. Move to the correct namespace. Better
constexpr support (thanks to Richard for the suggestions). Update the
tests to match this. Add <experimental/__config for experimental
macros/etc to live.

+ b1a40264dcb88479e9227faaeb015da8e51fbe79
[libcxx] Add <experimental/utility> header for LFTS.

+ 3ee7233c8072ef912e249e391b35168f559bb239
[libcxx] expose experimental::erased_type for all standard versions.

+ 67740670f980cf43bbc2daf352dff89fd6771008
NFC. Remove trailing whitespace and tabs.

+ b9536101dcc36995794ea81a4f74b5f132211142
NFC. Move definition of _LIBCPP_ASSERT into __debug header and remove
external include guards.

+ 98c4e404ca8c524c54b4e7ede97b807355422b53.
Revert "Turn off extern templates for most uses."

Bug: 17255369
Change-Id: I629ff16275d50e4cc8767b253a2c0542468348d8
san_testing.h
onstexpr_char_traits.hpp
ounting_predicates.hpp
in_allocator.h
othing_to_do.pass.cpp
latform_support.h
est_allocator.h
023715574db37053ffca0839b94c4537a36dc0d8 18-Jul-2014 Dan Albert <danalbert@google.com> Don't need these anymore.

Change-Id: I7fe5c735b0b2391998c69d3233bcc30979570ddb
ndroid.mk
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
53c0e72d5c5b7ccfa2234efbd84be5d6749dea89 03-Mar-2014 Marshall Clow <mclow.lists@gmail.com> Implement LWG 2324: Insert iterator constructors should use addressof(). Add two new container classes to the test suite that overload operator &, and add test cases to the insert/front_insert/back_insert iterator tests that use these containers.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@202741 91177308-0d34-0410-b5e6-96231b3b80d8
asty_containers.hpp
98760c18f85bafd98dde7a309e1b0e677abd47d8 16-Jan-2014 Marshall Clow <mclow.lists@gmail.com> Add license headers to a bunch of libc++ files that were missing them. No functionality change. Fixes 18291. Thanks to Nico for the bug report and the patch.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@199400 91177308-0d34-0410-b5e6-96231b3b80d8
efaultOnly.h
llocators.h
in_allocator.h
rivate_constructor.hpp
est_allocator.h
est_iterators.h
1b92188a82b01e76ac6e8ad5f997293c2a078adc 03-Dec-2013 Marshall Clow <mclow.lists@gmail.com> Found six (nmostly) identical files named 'test_allocator.h' in the libcxx test suite. Moved one to /support, made it a superset, and removed all but one of the others, and iupdated all the includes. Left the odd one (thread/futures/test_allocator.h) for later.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@196174 91177308-0d34-0410-b5e6-96231b3b80d8
est_allocator.h
ebedffde9adff4b56d3ccf6adcee8dc092404f0e 02-Dec-2013 Marshall Clow <mclow.lists@gmail.com> Found two identical files named 'allocators.h' in the libcxx test suite. Moved one to /support, removed the other, and iupdated all the includes. No functionality change

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@196127 91177308-0d34-0410-b5e6-96231b3b80d8
llocators.h
e27dbcf2dce3505a2c6f2d385216ea4e76655df3 02-Dec-2013 Marshall Clow <mclow.lists@gmail.com> Found two identical files named 'DefaultOnly.h' in the libcxx test suite. Moved one to /support, removed the other, and iupdated all the includes. No functionality change

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@196118 91177308-0d34-0410-b5e6-96231b3b80d8
efaultOnly.h
061d0cc4db18d17bf01ed14c5db0be098205bd47 26-Nov-2013 Marshall Clow <mclow.lists@gmail.com> There were two identical files named 'min_allocator.h'. Move one of them to /support and delete the other. Then adjust all the tests that used them to include the moved one. No functionality change.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@195785 91177308-0d34-0410-b5e6-96231b3b80d8
in_allocator.h
ae2b90b86d131d118bb9f54b6b93edd0384cd7b0 06-Oct-2013 Howard Hinnant <hhinnant@apple.com> G M: 1. It changes the temp file handling to use the template and the current directory for windows, matching how it works on other platforms.
2. It re-enables the temp file handling for mingw that regressed.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@192073 91177308-0d34-0410-b5e6-96231b3b80d8
latform_support.h
4a0a98166c0ca6117c74592eaeb12833c9913b49 13-Aug-2013 Marshall Clow <mclow.lists@gmail.com> First half of support for N3657; heterogenous lookups for set/multiset

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@188241 91177308-0d34-0410-b5e6-96231b3b80d8
rivate_constructor.hpp
e9df0a5c6c864f1ea86486881a3ee559c56105e7 01-Aug-2013 Howard Hinnant <hhinnant@apple.com> Nico Rieck: Currently _MSC_VER and _WIN32 are used to guard code which is
MSVC-specific, MSVCRT-specific, or Windows-specific. Because Clang can
also define _MSC_VER, and MSVCRT is not necessarily the only C runtime,
these macros should not be used interchangeably.

This patch divides all Windows-related bits into the aforementioned
categories. Two new macros are introduced:

- _LIBCPP_MSVC: Defined when compiling with MSVC. Detected using
_MSC_VER, excluding Clang.
- _LIBCPP_MSVCRT: Defined when using the Microsoft CRT. This is the default
when _WIN32 is defined.

This leaves _WIN32 for code using the Windows API.

This also corrects the spelling of _LIBCP_HAS_IS_BASE_OF to _LIBCPP_HAS_IS_BASE_OF.

Nico, please prepare a patch for CREDITS.TXT, thanks.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@187593 91177308-0d34-0410-b5e6-96231b3b80d8
latform_support.h
171771a9f5fd9e5dbbc6d6a2d9dfb0d8532b5155 08-Jul-2013 Howard Hinnant <hhinnant@apple.com> War on tabs.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@185865 91177308-0d34-0410-b5e6-96231b3b80d8
est_iterators.h
a5f0e6c5c188e35ca71bc176031cb51765d11d79 25-Apr-2013 Howard Hinnant <hhinnant@apple.com> İsmail Dönmez: Change to mktemp template to make it compatible with Linux.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@180267 91177308-0d34-0410-b5e6-96231b3b80d8
latform_support.h
06d8bf6ce2008526732ae40ad46f7ff031c409e7 22-Mar-2013 Howard Hinnant <hhinnant@apple.com> Test cleanup with respect to use of deprecated tmpnam function. Also Windows port for these tests to use _tempnam. The bulk of this patch was donated anonymously. I've tested it on OS X and accept responsibility for it. If I've broken anyone's platform by switching from tmpnam to mktemp for the generation of temporary file names, just let me know. Should be easy to fix in test/support/platform_support.h

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@177755 91177308-0d34-0410-b5e6-96231b3b80d8
latform_support.h
a22d2addb1287a7642bfcb211ae2cb21890d1cbd 18-Mar-2013 Marshall Clow <mclow@qualcomm.com> Removed raw references to _WIN32; now just check to see if it is defined.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@177291 91177308-0d34-0410-b5e6-96231b3b80d8
latform_support.h
b4ebb0e415549c5dc04e0622bb8f06999c558ede 14-Jan-2013 Howard Hinnant <hhinnant@apple.com> Michael van der Westhuizen: Improve support for testing on Linux. Fixes http://llvm.org/bugs/show_bug.cgi?id=14892.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@172436 91177308-0d34-0410-b5e6-96231b3b80d8
latform_support.h
304c31b355bc3f74a614535104e63abc3824d891 09-Jan-2013 Marshall Clow <mclow@qualcomm.com> Made test output iterators have value_type of 'void'; matches ones in library

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@171980 91177308-0d34-0410-b5e6-96231b3b80d8
othing_to_do.pass.cpp
est_iterators.h
83e2c4d877fe2d7793868b1c6a5d9525a7c4d431 05-Jan-2013 Marshall Clow <mclow@qualcomm.com> Move common header files into a 'support' directory; make 'testit' include -I to that directory; rename 'iterators.h' to 'iterator_test.h'; remove hard-coded paths to include files from more than 350 source files

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@171594 91177308-0d34-0410-b5e6-96231b3b80d8
exfloat.h
latform_support.h
est_iterators.h