mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Add memchr tests for n == 0
* string/test-memchr.c (test_main): Add tests for n == 0.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2017-05-25 H.J. Lu <hongjiu.lu@intel.com>
|
||||||
|
|
||||||
|
* string/test-memchr.c (test_main): Add tests for n == 0.
|
||||||
|
|
||||||
2017-05-25 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
|
2017-05-25 Tulio Magno Quites Machado Filho <tuliom@linux.vnet.ibm.com>
|
||||||
|
|
||||||
* nptl/Makefile (tests): Move nptl/tst-mutex8, nptl/tst-mutex8-static,
|
* nptl/Makefile (tests): Move nptl/tst-mutex8, nptl/tst-mutex8-static,
|
||||||
|
@ -179,6 +179,10 @@ test_main (void)
|
|||||||
|
|
||||||
for (i = 1; i < 8; ++i)
|
for (i = 1; i < 8; ++i)
|
||||||
{
|
{
|
||||||
|
/* Test n == 0. */
|
||||||
|
do_test (i, i, 0, 0, 23);
|
||||||
|
do_test (i, i, 0, 0, 0);
|
||||||
|
|
||||||
do_test (0, 16 << i, 2048, 2048, 23);
|
do_test (0, 16 << i, 2048, 2048, 23);
|
||||||
do_test (i, 64, 256, 256, 23);
|
do_test (i, 64, 256, 256, 23);
|
||||||
do_test (0, 16 << i, 2048, 2048, 0);
|
do_test (0, 16 << i, 2048, 2048, 0);
|
||||||
|
Reference in New Issue
Block a user