summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2015-02-14 14:11:50 -0800
committerElliott Hughes <enh@google.com>2015-02-14 14:11:50 -0800
commite1f9ddaf0d314186da8b2a86e5a438f6ff204030 (patch)
tree14e658d45b2e519c75c66a9c4823689a5f0e7430 /tests
parent4181cc691e36546c556274d46d389d7e0cb9cfab (diff)
downloadbionic-e1f9ddaf0d314186da8b2a86e5a438f6ff204030.zip
bionic-e1f9ddaf0d314186da8b2a86e5a438f6ff204030.tar.gz
bionic-e1f9ddaf0d314186da8b2a86e5a438f6ff204030.tar.bz2
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
Diffstat (limited to 'tests')
-rw-r--r--tests/wchar_test.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/wchar_test.cpp b/tests/wchar_test.cpp
index 63f3760..a1d1501 100644
--- a/tests/wchar_test.cpp
+++ b/tests/wchar_test.cpp
@@ -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];