# HG changeset patch # User Bruno Haible # Date 1552219293 -3600 # Node ID 9626783b417aedce25fe2f6e1c7e694919616cfe # Parent 8c1a17df67e058935da363efb6bec54b10235f29 Fix test failure introduced by last commit. diff -r 8c1a17df67e0 -r 9626783b417a ChangeLog --- 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 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 -r 8c1a17df67e0 -r 9626783b417a tests/test-freadptr.c --- 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;