提交 09606058 编写于 作者: C chuaizhzh

fix failed restcase

Change-Id: I4d78d98007b192dc835fc10d4622a5f69ac360d8
上级 51464a43
......@@ -246,11 +246,11 @@ HWTEST_F(IoTest, testWmemset, Function | MediumTest | Level1)
HWTEST_F(IoTest, testWmemchr, Function | MediumTest | Level1)
{
wchar_t src[] = L"hello world";
wchar_t *ret = wmemchr(src, L' ', sizeof(src));
wchar_t *ret = wmemchr(src, L' ', sizeof(src) / sizeof(src[0]) - 1);
EXPECT_STREQ(ret, L" world");
wchar_t srcT[] = L"this is string";
ret = wmemchr(srcT, L'?', sizeof(srcT));
ret = wmemchr(srcT, L'?', sizeof(srcT) / sizeof(srcT[0]) - 1);
EXPECT_STREQ(ret, nullptr);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册