Skip to content

Commit c281b12

Browse files
authored
[libc++][Android] XFAIL some tests for mblen/towctrans/wctrans (#116147)
These functions weren't added until API 26 (Android 8.0), but libc++ is supported for API 21 and up. These APIs are undeclared as of r.android.com/3216959.
1 parent df3ba91 commit c281b12

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

libcxx/test/std/depr/depr.c.headers/stdlib_h.pass.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
// test <stdlib.h>
1010

11+
// mblen was added in Android API 26.
12+
// TODO: Switch from UNSUPPORTED to XFAIL once the Android CI Docker sysroot is
13+
// updated.
14+
// UNSUPPORTED: LIBCXX-ANDROID-FIXME && target={{.+}}-android{{(eabi)?(21|22|23|24|25)}}
15+
1116
#include <stdlib.h>
1217
#include <cassert>
1318
#include <type_traits>

libcxx/test/std/depr/depr.c.headers/wctype_h.compile.pass.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
// UNSUPPORTED: no-wide-characters
1010

11+
// towctrans and wctrans were added in Android API 26.
12+
// TODO: Switch from UNSUPPORTED to XFAIL once the Android CI Docker sysroot is
13+
// updated.
14+
// UNSUPPORTED: LIBCXX-ANDROID-FIXME && target={{.+}}-android{{(eabi)?(21|22|23|24|25)}}
15+
1116
// <wctype.h>
1217

1318
#include <wctype.h>

libcxx/test/std/language.support/support.runtime/cstdlib.pass.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88

99
// test <cstdlib>
1010

11+
// mblen was added in Android API 26.
12+
// TODO: Switch from UNSUPPORTED to XFAIL once the Android CI Docker sysroot is
13+
// updated.
14+
// UNSUPPORTED: LIBCXX-ANDROID-FIXME && target={{.+}}-android{{(eabi)?(21|22|23|24|25)}}
15+
1116
#include <cstdlib>
1217
#include <cassert>
1318
#include <type_traits>

libcxx/test/std/strings/c.strings/cwctype.pass.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@
1010

1111
// UNSUPPORTED: no-wide-characters
1212

13+
// towctrans and wctrans were added in Android API 26.
14+
// TODO: Switch from UNSUPPORTED to XFAIL once the Android CI Docker sysroot is
15+
// updated.
16+
// UNSUPPORTED: LIBCXX-ANDROID-FIXME && target={{.+}}-android{{(eabi)?(21|22|23|24|25)}}
17+
1318
#include <cwctype>
1419
#include <type_traits>
1520

0 commit comments

Comments
 (0)