mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 17:53:37 +08:00
String: Improve test coverage for memchr
This test improves memchr coverage near page boundary. Reviewed-by: H.J. Lu <hjl.tools@gmail.com>
This commit is contained in:
parent
58548b9d68
commit
932dd83efd
@ -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 ();
|
||||
|
Loading…
Reference in New Issue
Block a user