]> Savannah Git Hosting - gnulib.git/commitdiff
Fix test failure introduced by last commit.
authorBruno Haible <bruno@clisp.org>
Sun, 10 Mar 2019 12:01:33 +0000 (13:01 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 10 Mar 2019 12:01:33 +0000 (13:01 +0100)
ChangeLog
tests/test-freadptr.c

index 86ebce56b745370b024e5aca58e6088bea795f8b..3396c8bc3b464ad897bdb3648f7d63cc51bca1e3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -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
index f127d852dc3c07ae5e1e76ff5b3824ae67fb5ae0..8b179237b21b49594a21da588a83dfae46f0cd33 100644 (file)
@@ -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;