From 8bf50d5b72193d342f2c784ecbc5068d6baee114 Mon Sep 17 00:00:00 2001 From: Christopher Ferris Date: Thu, 29 May 2014 15:42:42 -0700 Subject: [PATCH] Fix wmemmove test. I accidentally copied over the nul terminator with the test. Change-Id: I24a9aa05d4fba4f383fa38a3041bb6a6b179130c --- tests/wchar_test.cpp | 4 ++-- 1 file 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); }