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:
Sunil K Pandey 2022-10-18 00:36:51 -07:00
parent 58548b9d68
commit 932dd83efd

View File

@ -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 ();