From 613aa429e6e8f77255ff6ea88625ca472c2b91cc Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sun, 10 Mar 2019 13:01:33 +0100 Subject: [PATCH] Fix test failure introduced by last commit. --- ChangeLog | 7 ++++--- tests/test-freadptr.c | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 86ebce56b7..3396c8bc3b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,8 +1,9 @@ 2019-03-10 Bruno Haible 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 @@ -55,7 +56,7 @@ 2019-03-09 Bruno Haible 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 diff --git a/tests/test-freadptr.c b/tests/test-freadptr.c index f127d852dc..8b179237b2 100644 --- a/tests/test-freadptr.c +++ b/tests/test-freadptr.c @@ -44,7 +44,7 @@ main (int argc, char **argv) { /* 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; -- 2.39.5