I don't know when, but the libc++ tests have regressed a lot. This
cleans up some of the issues.
Test: ./run_tests.py
Bug: None
Change-Id: Ic0ef789428e131b61121c49e294545a701f963bb
The new clang drop isn't capable of building libc++ itself with C++1z
(I haven't investigate yet), but it seems we don't need that.
Test: make checkbuild && ./run_tests.py # sailfish
Bug: http://b/34740564
Change-Id: I0dfb578b1b04dd37108371deaa710681b0d88f4f
The sv ud literal was added to C++17 for creating string_views, but
the Clang we have doesn't know that so it warns about using a
reserved ud literal name. Disable the warning since it's not
important here anyway.
Test: ./run_tests.py
Bug: http://b/34740564
Change-Id: I7b59a4b63969252d4df012df3c11d7638cbfa5a0
Invoking these from make was pretty gross, and apparently I was
getting it wrong for the buildbot (was running mmm buildcmds without
running configtests).
This makes a single entry point of run-tests.py. The ugly hacks for
cflags/ldflags detection is still there, but it's at least not *as*
bad.
Change-Id: I0157700d83f6a38a209751a03a00dc9a8e708744
Enable sized deallocation (disabled by clang by the default) so those
tests pass.
Bug: http://b/23043421
Change-Id: I347fa9a5653eb1ed0102d42234ba2de41616de39
The regex being overspecified meant that host tests were not properly
replacing the dummy.o when linking, meaning all of the tests that were
running were running nothing but `int main() {}`.
The good news is that there weren't any failing tests hiding behind
this on Linux.
Change-Id: I9bea82ff1fefdf156d68a58689e532807c8d999b
This adds all the permutations for tests as make targets of the form
test-libcxx-(host|target)-(clang|gcc)-(32|64).
This also changes the host tests to use the Android build system (like
I had done with https://android-review.googlesource.com/#/c/111924/).
This probably should have been a separate patch, but I got carried
away (and wanted to make sure this new approach would work for both),
and now they're non-trivial to split.
Change-Id: Ie99caf6c3ff21c833408f99d37299d966ee7bc94
Use LOCAL_CXX with a dummy compiler to determine the build/link flags
the build system will use to build a typical Android executable. This
both prevents test failures when the build system simply goes out of
sync with the old, hard coded flags, and helps us catch new failures
introduced by build system changes ASAP.
Change-Id: I9a867ab49b7f2158070cf944c7a96084089a3718