2019-03-10 Bruno Haible <bruno@clisp.org>
tests: Prepare for using valgrind.
- tests/*.sh: Invoke all test programs through ${CHECKER}.
- tests/*/*.sh: Likewise.
+ * tests/*.sh: Invoke all test programs through ${CHECKER}.
+ * tests/*/*.sh: Likewise.
+ * tests/test-freadptr.c (main): Update accordingly.
2019-03-09 Bruno Haible <bruno@clisp.org>
2019-03-09 Bruno Haible <bruno@clisp.org>
Fix undefined behaviour.
- * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Case x to
+ * lib/bitrotate.h (rotl16, rotr16, rotl8, rotr8): Cast x to
'unsigned int', to avoid shift operations on 'int'.
* lib/xmemdup0.c (xmemdup0): Don't invoke memcpy with a zero size.
* tests/test-count-leading-zeros.c (main): Use a random number that has
{
/* Normal buffered stdio. */
const char stdin_contents[] =
- "#!/bin/sh\n\n./test-freadptr${EXEEXT} 5 < \"$srcdir/test-freadptr.sh\" || exit 1\ncat \"$srcdir/test-freadptr.sh\" | ./test-freadptr${EXEEXT} 5 || exit 1\nexit 0\n";
+ "#!/bin/sh\n\n${CHECKER} ./test-freadptr${EXEEXT} 5 < \"$srcdir/test-freadptr.sh\" || exit 1\ncat \"$srcdir/test-freadptr.sh\" | ${CHECKER} ./test-freadptr${EXEEXT} 5 || exit 1\nexit 0\n";
const char *expected = stdin_contents + nbytes;
size_t available1;
size_t available2;