changeset 40222:9626783b417a

Fix test failure introduced by last commit.
author Bruno Haible <bruno@clisp.org>
date Sun, 10 Mar 2019 13:01:33 +0100
parents 8c1a17df67e0
children 84a15f7137a7
files ChangeLog tests/test-freadptr.c
diffstat 2 files changed, 5 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Sun Mar 10 11:32:11 2019 +0100
+++ b/ChangeLog	Sun Mar 10 13:01:33 2019 +0100
@@ -1,8 +1,9 @@
 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>
 
@@ -55,7 +56,7 @@
 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
--- a/tests/test-freadptr.c	Sun Mar 10 11:32:11 2019 +0100
+++ b/tests/test-freadptr.c	Sun Mar 10 13:01:33 2019 +0100
@@ -44,7 +44,7 @@
     {
       /* 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;