Commit Graph

2 Commits

Author SHA1 Message Date
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