Commit Graph

9 Commits

Author SHA1 Message Date
Dan Albert
2a269419dc Reverts a compatibility change made to two tests
wctype_t was previously declared as an enum in bionic, preventing direct integer
assignment. This has since been made more like other libc's, so we can revert
this change.

Bug: 14646243
Change-Id: Ie63711b8f6d4f947b8fe3b278f5503495521555d
2014-05-16 13:52:06 -07:00
Dan Albert
9fdc63a61c Disables tests that fail to compile
math_h, cmath:
    Fails a static assert because isnan(double) and isinf(double) should be
    returning bool, but aren't. This is a known problem upstream.
    http://libcxx.llvm.org/results.Linux.html

uchar_h, cuchar, version_cuchar:
    Bionic does not include this header. According to upstream, this was also a
    problem with glibc last time they ran their tests. Docs say this is fixed in
    glibc 2.16. http://libcxx.llvm.org/results.Linux.html

wctype_h, cwctype:
    This one isn't disabled, but did require a fix. The test was casting 0
    directly to a wctype_t, which fails because bionic's wctype_t is an enum.
    From the POSIX spec, it looks like bionic is allowed to do so, and this test
    should be fixed upstream.

cstdio:
    snprintf is a macro in bionic, which make it impossible for <cstdio> to
    ::using snprintf. There may be a work around for this.

quick_exit:
    Bionic supports this, but glibc does not. Also becomes available in glibc
    2.16. http://libcxx.llvm.org/results.Linux.html

max_align_t:
    Needs investigation.

aligned_storage:
    Needs investigation.

Change-Id: I62a5210f6755388dc06cce20d81530a300300bf1
2014-05-13 00:16:46 +00:00
Dan Albert
6f56ab789c 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
2014-05-12 16:02:43 -07:00
Daniel Dunbar
edfb05351e [tests] XFAIL a few things that require libc (?) support missing on Darwin.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@174450 91177308-0d34-0410-b5e6-96231b3b80d8
2013-02-05 22:10:25 +00:00
Sean Hunt
a78264f872 Fix wchar tests by not assuming that tm is complete and by using the
proper va_list time on non-darwin platforms.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@135247 91177308-0d34-0410-b5e6-96231b3b80d8
2011-07-15 05:44:47 +00:00
Howard Hinnant
b64f8b07c1 license change
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@119395 91177308-0d34-0410-b5e6-96231b3b80d8
2010-11-16 22:09:02 +00:00
Howard Hinnant
0a68a4d739 Fix conflict with cstring and using namespace std
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@110736 91177308-0d34-0410-b5e6-96231b3b80d8
2010-08-10 21:57:23 +00:00
Howard Hinnant
f5256e16df Wiped out some non-ascii characters that snuck into the copyright.
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@103516 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-11 21:36:01 +00:00
Howard Hinnant
bc8d3f97eb libcxx initial import
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@103490 91177308-0d34-0410-b5e6-96231b3b80d8
2010-05-11 19:42:16 +00:00