[patch, testsuite] test newlib.string/strcmp-1.c takes too long

Greta Yorsh Greta.Yorsh@arm.com
Wed May 2 16:31:00 GMT 2012


The test of strcmp in newlib.string testsuite can take too long to run on
simulators, resulting in timeout failures.

This patch creates a short version of the test, by reducing the length and
the number of strings to compare. This patch also adds a new macro LONG_TEST
to control whether a short or a more comprehensive test should be used.
LONG_TEST is not set by default. 

Thanks,
Greta

newlib/ChangeLog

2012-05-01  Greta Yorsh<Greta.Yorsh@arm.com>

	* testsuite/newlib.string/strcmp-1.c (LONG_TEST): New macro.
	(MAX_BLOCK_SIZE): Use small value when LONG_TEST is not set.
 	(MAX_DIFF, MAX_LEN, MAX_ZEROS) Likewise.

-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: newlib-test-strcmp.v2.patch.txt
URL: <http://sourceware.org/pipermail/newlib/attachments/20120502/511247ec/attachment.txt>


More information about the Newlib mailing list