diff options
author | Christopher Ferris <cferris@google.com> | 2014-05-29 15:42:42 -0700 |
---|---|---|
committer | Christopher Ferris <cferris@google.com> | 2014-05-29 15:44:34 -0700 |
commit | 8bf50d5b72193d342f2c784ecbc5068d6baee114 (patch) | |
tree | 1a7db1a8a64e8e8529f8dc161c39478706f114a3 /tests/wchar_test.cpp | |
parent | d4fbb1a8617285ab1d29324308aa016377fc36f3 (diff) | |
download | android_bionic-8bf50d5b72193d342f2c784ecbc5068d6baee114.tar.gz android_bionic-8bf50d5b72193d342f2c784ecbc5068d6baee114.tar.bz2 android_bionic-8bf50d5b72193d342f2c784ecbc5068d6baee114.zip |
Fix wmemmove test.
I accidentally copied over the nul terminator with the test.
Change-Id: I24a9aa05d4fba4f383fa38a3041bb6a6b179130c
Diffstat (limited to 'tests/wchar_test.cpp')
-rw-r--r-- | tests/wchar_test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wchar_test.cpp b/tests/wchar_test.cpp index 5fa5bf992..5a250a24f 100644 --- a/tests/wchar_test.cpp +++ b/tests/wchar_test.cpp @@ -450,6 +450,6 @@ TEST(wchar, wmemmove) { wmemmove(wstr, const_wstr, sizeof(const_wstr)/sizeof(wchar_t)); EXPECT_STREQ(const_wstr, wstr); - wmemmove(wstr+5, wstr, sizeof(const_wstr)/sizeof(wchar_t) - 5); - EXPECT_STREQ(L"This This is a test of something or other.", wstr); + wmemmove(wstr+5, wstr, sizeof(const_wstr)/sizeof(wchar_t) - 6); + EXPECT_STREQ(L"This This is a test of something or other", wstr); } |