# HG changeset patch # User Jim Meyering # Date 1322211829 -3600 # Node ID ff91f9a6096725fbae83c4f851a4c2c00cfa6528 # Parent f15f3510d84c904081f96f32e31ae9ce86fda2f3 test-update-copyright.sh: avoid false-positive failure * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work around false positive failure on Cygwin/Windows. The latter was matching erroneously-created files with names like update-copyright.test-ex.4.bak. Reported by Simon Josefsson. diff --git a/ChangeLog b/ChangeLog --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2011-11-25 Jim Meyering + + test-update-copyright.sh: avoid false-positive failure + * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work + around false positive failure on Cygwin/Windows. The latter was + matching erroneously-created files with names like + update-copyright.test-ex.4.bak. Reported by Simon Josefsson. + 2011-11-25 Simon Josefsson valgrind-tests.m4: Avoid breakage if valgrind on bash fails. diff --git a/tests/test-update-copyright.sh b/tests/test-update-copyright.sh --- a/tests/test-update-copyright.sh +++ b/tests/test-update-copyright.sh @@ -103,7 +103,7 @@ EOF UPDATE_COPYRIGHT_YEAR=2009 \ - update-copyright $TMP.* 1> $TMP-stdout 2> $TMP-stderr + update-copyright $TMP.? 1> $TMP-stdout 2> $TMP-stderr compare /dev/null $TMP-stdout || exit 1 compare - $TMP-stderr < $TMP-stdout 2> $TMP-stderr + update-copyright $TMP.? 1> $TMP-stdout 2> $TMP-stderr compare /dev/null $TMP-stdout || exit 1 compare - $TMP-stderr < $TMP-stdout 2> $TMP-stderr + update-copyright $TMP.? 1> $TMP-stdout 2> $TMP-stderr compare /dev/null $TMP-stdout || exit 1 compare - $TMP-stderr <