Commit Graph

1658 Commits

Author SHA1 Message Date
Ying Wang
b1300bde9c Exclude only modules with prebuilt in prebuilts/sdk.
So we can do tapas build in the full platform source tree.

Change-Id: I4c64d1007d1e295518ed6338b46d1087714b68aa
(cherry picked from commit 9dd567a7d5)
2014-08-07 15:42:50 +00:00
Dan Albert
d738817d0e am e5066988: Add locales to available_features for tests.
* commit 'e50669886ae3303fb767434fc8bb990ce7ce9f1b':
  Add locales to available_features for tests.
2014-08-05 00:09:47 +00:00
Dan Albert
e50669886a Add locales to available_features for tests.
Linux has a lot of failures caused by not having support for certain
locales. Since these come out as a lot of noise in the test results,
have lit.cfg detect the presence of the various locales used in the
tests and add them to config.available_features as locale.LOCALE_NAME.

This patch also adds REQUIRES: locale.REQUIRED_LOCALE to every test that
I saw failing in this manner. We probably need to add more for all the
tests requiring en_US.UTF-8, but we can do that on an as-needed basis.

One thing that concerns me is how many tests get skipped because of
missing locales (especially in regex/). We should make a point of
splitting up any tests that test default behavior _and_ behavior under a
given locale so that we aren't losing coverage for default behavior.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@214753 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit b4ed5ca01e)

Change-Id: I927e18139449dcc74abcca63aaf72e7b2c8c4a25
2014-08-04 12:37:49 -07:00
Dan Albert
fdf75ffb5e am e7a75ccf: Fix regex_traits<T>::char_class_type for Android.
* commit 'e7a75ccf2d8d34a609bb66ec74f57e6b0fc89067':
  Fix regex_traits<T>::char_class_type for Android.
2014-07-31 22:36:50 +00:00
Dan Albert
f510c8429f am 5d14883f: Make Android\'s ctype_base::mask unsigned.
* commit '5d14883f1b1ed0e78e1d1a9026729c41e9a2fc7b':
  Make Android's ctype_base::mask unsigned.
2014-07-31 22:36:49 +00:00
Dan Albert
f62eb06f13 am bcaf4d5e: Base regex code on char_class_type.
* commit 'bcaf4d5e8495dc1e5f4e87d06357f3241170be6d':
  Base regex code on char_class_type.
2014-07-31 22:29:00 +00:00
Dan Albert
e7a75ccf2d Fix regex_traits<T>::char_class_type for Android.
Android can't use ctype_base::mask for its char_class_type because the
bionic ctype implementation comes from openbsd, which uses an 8-bit
ctype mask which isn't large enough to encode the standard ctypes and
__regex_word.

Change-Id: Iee4b8dd465ff2cb358ed2b10e1c3a499437403b7
2014-07-31 14:15:34 -07:00
Dan Albert
5d14883f1b Make Android's ctype_base::mask unsigned.
Keeping the regex code sane is much easier if we match the other
platforms and use an unsigned mask.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@214442 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit 3ab406107d)

Change-Id: If15df5f68783a23cbfc60075355f8481d60c11db
2014-07-31 14:15:34 -07:00
Dan Albert
bcaf4d5e84 Base regex code on char_class_type.
__get_classname() and __bracket_expression were assuming that
char_class_type was ctype_base::mask rather than using
regex_traits<_CharT>::char_class_type.

This change allows char_class_type to be defined to something other than
ctype_base::mask so that the implementation will still work for
platforms with an 8-bit ctype mask (such as Android and OpenBSD).

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@214201 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit 1757386944)

Change-Id: I7187cba000d6cafbe02b1ea5026f968542a909b2
2014-07-30 17:02:23 -07:00
Dan Albert
3462e235a1 am a9aa30b5: Use correct -march for x86.
* commit 'a9aa30b5d18422fce29a42ce1a704bc5f28febde':
  Use correct -march for x86.
2014-07-31 00:00:54 +00:00
Dan Albert
a9aa30b5d1 Use correct -march for x86.
Apparently this change wasn't made for the target x86 build, only the
host.

Change-Id: I8ee6312068b9415df836d298150510832c879729
2014-07-30 22:52:13 +00:00
Nico Weber
202a957da9 am edd7eb0f: Make meta.trans.other/aligned_storage.pass.cpp pass on arm.
* commit 'edd7eb0fda6f078e53317675361c869b046b53e1':
  Make meta.trans.other/aligned_storage.pass.cpp pass on arm.
2014-07-30 14:16:10 +00:00
David Majnemer
c1fe195adf am 58ff10e7: Linux: Correctly identify valid error codes
* commit '58ff10e7331b93c411f882af8f5246a0a146e275':
  Linux: Correctly identify valid error codes
2014-07-30 14:16:09 +00:00
Marshall Clow
1c65e3eeb4 am 0ac81144: Fix Bug 19678 - libc++ does not correctly handle the regex: \'[^\0]*\'
* commit '0ac811445c369a7b1ee798ec5281557ee6306707':
  Fix Bug 19678 - libc++ does not correctly handle the regex: '[^\0]*'
2014-07-30 14:16:08 +00:00
Marshall Clow
b3a445ba5e am ab4cbddb: Fix bug 19740; round-tripping a pointer through a stream doesn\'t work
* commit 'ab4cbddb646098c4ffeec558ffce3a442169e410':
  Fix bug 19740; round-tripping a pointer through a stream doesn't work
2014-07-30 14:16:07 +00:00
Dan Albert
1a954d2924 am 142f1f3a: Fix ctype_base::xdigit for Android.
* commit '142f1f3ac6032e21b069934c61a9bfa3c08c6e81':
  Fix ctype_base::xdigit for Android.
2014-07-30 14:16:06 +00:00
Nico Weber
edd7eb0fda Make meta.trans.other/aligned_storage.pass.cpp pass on arm.
The maximum alignment on arm is 8, not 16 like on x86. Use alignof(max_align_t)
to make the test work in both cases.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@210195 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit 8f62279382)
2014-07-29 15:49:18 -07:00
David Majnemer
58ff10e733 Linux: Correctly identify valid error codes
[syserr.errcat.objects]p4 specifies that
system_category().default_error_condition(ev) map to
error_condition(posv, generic_category()) if ev could map to a POSIX
errno.

Linux reserves up to and including 4095 for errno values, use this as a
bound.

This fixes syserr.errcat.objects/system_category.pass.cpp on Linux.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@209795 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit 0f5a5124d2)
2014-07-29 15:49:18 -07:00
Marshall Clow
0ac811445c Fix Bug 19678 - libc++ does not correctly handle the regex: '[^\0]*'
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@209307 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit 21622af9d7)
2014-07-29 15:49:17 -07:00
Marshall Clow
ab4cbddb64 Fix bug 19740; round-tripping a pointer through a stream doesn't work
git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@209305 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit 854ad932c8)
2014-07-29 15:15:06 -07:00
Dan Albert
142f1f3ac6 Fix ctype_base::xdigit for Android.
Android's ctype implementation comes from openbsd, which for some reason
doesn't consider numbers to be hex digits.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@213785 91177308-0d34-0410-b5e6-96231b3b80d8
(cherry picked from commit d1ab521199)
2014-07-29 15:15:02 -07:00
Dan Albert
517b027553 am 48faff72: Don\'t treat non-virtual-dtor as an error.
* commit '48faff7281e4f7f2f90b88983ba1e8c205a549af':
  Don't treat non-virtual-dtor as an error.
2014-07-29 19:08:47 +00:00
Dan Albert
48faff7281 Don't treat non-virtual-dtor as an error.
Some of the new/modified tests explicitly check things about virtual
classes with non-virtual destructors.

Change-Id: Ibd79700a2d4040b1871149035a8ca9eb81ab220c
2014-07-29 11:07:47 -07:00
Nico Weber
3df2bda752 am 8f622793: Make meta.trans.other/aligned_storage.pass.cpp pass on arm.
* commit '8f6227938229210d8842b8efaf058fc3b4649a7d':
  Make meta.trans.other/aligned_storage.pass.cpp pass on arm.
2014-07-29 01:16:46 +00:00
David Majnemer
f8d32667bc am 0f5a5124: Linux: Correctly identify valid error codes
* commit '0f5a5124d21cad2ea1278a2aed44bfd40a17b542':
  Linux: Correctly identify valid error codes
2014-07-29 00:50:47 +00:00
Nico Weber
8f62279382 Make meta.trans.other/aligned_storage.pass.cpp pass on arm.
The maximum alignment on arm is 8, not 16 like on x86. Use alignof(max_align_t)
to make the test work in both cases.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@210195 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-28 17:25:29 -07:00
Dan Albert
1e2a5ffce6 am 16d1deac: Merge "Fix Bug 19678 - libc++ does not correctly handle the regex: \'[^\0]*\'"
* commit '16d1deacde325504e2d53aa01d3c6d54789135b2':
  Fix Bug 19678 - libc++ does not correctly handle the regex: '[^\0]*'
2014-07-28 23:22:48 +00:00
Dan Albert
248602b791 am 51aa0862: Fix compiler accidentally being passed twice.
* commit '51aa0862f99f6f87c3e03445b46344893a2b445c':
  Fix compiler accidentally being passed twice.
2014-07-28 23:22:47 +00:00
David Majnemer
0f5a5124d2 Linux: Correctly identify valid error codes
[syserr.errcat.objects]p4 specifies that
system_category().default_error_condition(ev) map to
error_condition(posv, generic_category()) if ev could map to a POSIX
errno.

Linux reserves up to and including 4095 for errno values, use this as a
bound.

This fixes syserr.errcat.objects/system_category.pass.cpp on Linux.

git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@209795 91177308-0d34-0410-b5e6-96231b3b80d8
2014-07-28 16:07:54 -07:00
Dan Albert
51aa0862f9 Fix compiler accidentally being passed twice.
Don't know how this slipped through...

Change-Id: I5a3bba06bea4f4016e4ac30a700666b2cf2b3556
2014-07-28 15:44:56 -07:00
Dan Albert
31c2e91c56 am 0598fd4f: Allow per device timeout configurations.
* commit '0598fd4f2b7cc1d71e29ef4d4fc19006f066d5c5':
  Allow per device timeout configurations.
2014-07-26 00:20:26 +00:00
Dan Albert
0598fd4f2b Allow per device timeout configurations.
Pesky emulator.

Change-Id: Ie49bd93c2393172e41cd35b7b8f03ecb20b6582a
2014-07-25 17:03:02 -07:00
Dan Albert
0898db78dc am 68d5101b: XFAIL for android as well as androideabi.
* commit '68d5101b7c2a4fb62e26402a881a313ed58eb39e':
  XFAIL for android as well as androideabi.
2014-07-25 23:04:05 +00:00
Dan Albert
18ede98321 am 356f3740: Test configs for x86 emulator.
* commit '356f3740af7079f5554b2aed35a114b44e6e90eb':
  Test configs for x86 emulator.
2014-07-25 23:04:04 +00:00
Dan Albert
68d5101b7c XFAIL for android as well as androideabi.
Change-Id: I34a01279bf1e1e0ea532914bbbfc58f7495a1db3
2014-07-25 15:51:02 -07:00
Dan Albert
356f3740af Test configs for x86 emulator.
Change-Id: Ia5d049974b1e67dcf1ceb7e12c1d0fc52daa411e
2014-07-25 15:37:08 -07:00
Dan Albert
2080a087f9 am 52f48def: Up the default timeout.
* commit '52f48def7a3c511f64cc0b3eac983ddd1049a277':
  Up the default timeout.
2014-07-25 22:17:05 +00:00
Stephen Hines
1c5680d350 am 3aba5bed: Remove MIPS workaround for shared text relocations.
* commit '3aba5bed905af018db8eb9c92ba7685b4aa2b3ec':
  Remove MIPS workaround for shared text relocations.
2014-07-25 21:07:03 +00:00
Dan Albert
40424903d9 am 8e3d7626: Bionic added en_US.UTF-8 to supported locales.
* commit '8e3d76265645e312c7ade68aa2ab9c7ca028c778':
  Bionic added en_US.UTF-8 to supported locales.
2014-07-25 19:45:20 +00:00
Dan Albert
52f48def7a Up the default timeout.
30 was chosen back when asserts() were still being compiled out. It's
far too short for some of the math tests.

Change-Id: I41ada11247bbfd7173a9b43dbe98a6d60bb19755
2014-07-25 12:26:14 -07:00
Dan Albert
2b31bec066 am e0fd2508: Add XFAIL for tests using locales.
* commit 'e0fd2508a31129444172c984592564cac00b9c0d':
  Add XFAIL for tests using locales.
2014-07-25 18:45:12 +00:00
Dan Albert
685d2c9493 am f61de8fe: Re-enable tests
* commit 'f61de8fe5e897a3c619f1a1aa883ec9059eee70b':
  Re-enable tests
2014-07-25 18:45:12 +00:00
Dan Albert
e8069ade3e am 02371557: Don\'t need these anymore.
* commit '023715574db37053ffca0839b94c4537a36dc0d8':
  Don't need these anymore.
2014-07-25 18:45:11 +00:00
Dan Albert
68185ca8e7 am 0f81d763: Add support for LIT to Android.mk.
* commit '0f81d7634f698157ddef3061713caca314f59ca4':
  Add support for LIT to Android.mk.
2014-07-25 18:45:10 +00:00
Dan Albert
b5e96faeea am 8caa123b: Merge "Add support for Android targets to lit.cfg."
* commit '8caa123b96b5c7151f652003b2674dddf763a234':
  Add support for Android targets to lit.cfg.
2014-07-25 18:45:10 +00:00
Dan Albert
8e3d762656 Bionic added en_US.UTF-8 to supported locales.
Change-Id: Ia905f47a3fcee0c30b8fbaf301f278d9187c326d
2014-07-25 11:35:28 -07:00
Dan Albert
e0fd2508a3 Add XFAIL for tests using locales.
Bionic doesn't support anything but the C locale yet, so we know we
can't pass these tests.

Change-Id: I106104341d25d17c123e05474b9413bc3e43637a
2014-07-25 10:42:46 -07:00
Dan Albert
f61de8fe5e Re-enable tests
Change-Id: Ie715f6a6489d279295f619b8e1b84095c82b1f32
2014-07-25 17:41:32 +00:00
Dan Albert
023715574d Don't need these anymore.
Change-Id: I7fe5c735b0b2391998c69d3233bcc30979570ddb
2014-07-25 17:40:31 +00:00
Dan Albert
0f81d7634f Add support for LIT to Android.mk.
Now that test/lit.cfg can handle running tests on Android devices, we
can move testing over to LIT so that it's easier to stay in sync with
upstream (no longer have to run test/makemake.py to regenerate makefiles
for each test). Also, we can now actually run all of the xfail tests
(tests that are considered passing if compilation fails).

The libc++ tests can be run with:

    $ mm test-libcxx        # run all tests
    $ mm test-libcxx-host   # host only
    $ mm test-libcxx-device # device only (uses current lunch target)

Actually generating the cppflags and ldflags is done in test/device.cfg.
It's a little ugly, but it does a decent job of approximating our build
system while still allowing us to finish a test run in less than 7
hours. Additional devices can be added to the config as needed.

Change-Id: Ieba38912a213c43e54e03ab9b8c4e25f019b0305
2014-07-25 17:39:44 +00:00