diff options
author | Sunil K Pandey <skpgkp2@gmail.com> | 2022-10-18 00:36:51 -0700 |
---|---|---|
committer | Sunil K Pandey <skpgkp2@gmail.com> | 2022-10-18 09:10:33 -0700 |
commit | 932dd83efdce7dbe7c008a27c4eff424a109b3a0 (patch) | |
tree | 1a2e17c6a7c725a77f523c1c69156829e445a757 /string | |
parent | 58548b9d689fb9bba67bdc5b59c8d2fa47f4f8ec (diff) | |
download | glibc-932dd83efdce7dbe7c008a27c4eff424a109b3a0.tar.gz glibc-932dd83efdce7dbe7c008a27c4eff424a109b3a0.tar.xz glibc-932dd83efdce7dbe7c008a27c4eff424a109b3a0.zip |
String: Improve test coverage for memchr
This test improves memchr coverage near page boundary. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
Diffstat (limited to 'string')
-rw-r--r-- | string/test-memchr.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/string/test-memchr.c b/string/test-memchr.c index 1cbcd57fd4..ab206e05db 100644 --- a/string/test-memchr.c +++ b/string/test-memchr.c @@ -251,6 +251,7 @@ test_main (void) /* page_size is in fact getpagesize() * 2. */ do_test (page_size / 2 - i, i, i, 1, 0x9B); do_test (page_size / 2 - i, i - 1, i - 1, 1, 0x9B); + do_test (page_size / 2 - (i * 4), i + 128, i + 128, i, 0x9B); } do_random_tests (); |