Regression test for NDK bug 80199.
Bionic never had this bug, but since the proposed fix is to remove the NDK's broken code, we should add a regression test here. Bug: https://code.google.com/p/android/issues/detail?id=80199 Change-Id: I4de21b5da9913cef990bc4d05a7e27562a71a02b
This commit is contained in:
parent
4181cc691e
commit
e1f9ddaf0d
1 changed files with 5 additions and 0 deletions
|
@ -234,6 +234,11 @@ TEST(wchar, wcsstr) {
|
|||
ASSERT_EQ(NULL, wcsstr(haystack, bad_needle));
|
||||
}
|
||||
|
||||
TEST(wchar, wcsstr_80199) {
|
||||
// https://code.google.com/p/android/issues/detail?id=80199
|
||||
ASSERT_TRUE(wcsstr(L"romrom", L"rom") != NULL);
|
||||
}
|
||||
|
||||
TEST(wchar, mbtowc) {
|
||||
wchar_t out[8];
|
||||
|
||||
|
|
Loading…
Reference in a new issue