Get LIBC_FMT to build for aarch64

This commit is contained in:
Justine Tunney 2023-05-08 22:27:03 -07:00
parent 036b9a0002
commit 7e46645193
No known key found for this signature in database
GPG key ID: BE714B4575D6E328
15 changed files with 482 additions and 618 deletions

View file

@ -95,6 +95,10 @@ TEST(strnlen_s, null_ReturnsZero) {
ASSERT_EQ(0, strnlen_s(NULL, 3));
}
TEST(wcsnlen_s, null_ReturnsZero) {
ASSERT_EQ(0, wcsnlen_s(NULL, 3));
}
TEST(strnlen, nulNotFound_ReturnsSize) {
int sizes[] = {1, 2, 7, 8, 15, 16, 31, 32, 33};
for (unsigned i = 0; i < ARRAYLEN(sizes); ++i) {
@ -110,6 +114,11 @@ TEST(strnlen_s, nulNotFound) {
ASSERT_EQ(3, strnlen_s(buf, 3));
}
TEST(wcsnlen_s, nulNotFound) {
wchar_t buf[3] = {1, 2, 3};
ASSERT_EQ(3, wcsnlen_s(buf, 3));
}
TEST(strlen, fuzz) {
char *b;
size_t n, n1, n2;