summary refs log tree commit diff
path: root/string
diff options
context:
space:
mode:
authorSunil K Pandey <skpgkp2@gmail.com>2022-10-18 00:36:51 -0700
committerSunil K Pandey <skpgkp2@gmail.com>2022-10-18 09:10:33 -0700
commit932dd83efdce7dbe7c008a27c4eff424a109b3a0 (patch)
tree1a2e17c6a7c725a77f523c1c69156829e445a757 /string
parent58548b9d689fb9bba67bdc5b59c8d2fa47f4f8ec (diff)
downloadglibc-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.c1
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 ();