test-update-copyright.sh: avoid false-positive failure
authorJim Meyering <meyering@redhat.com>
Fri, 25 Nov 2011 09:03:49 +0000 (10:03 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 25 Nov 2011 09:23:04 +0000 (10:23 +0100)
* 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.

ChangeLog
tests/test-update-copyright.sh

index 8dff9d9..9623f17 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2011-11-25  Jim Meyering  <meyering@redhat.com>
+
+       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  <simon@josefsson.org>
 
        valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
index a1fce0b..87054ec 100755 (executable)
@@ -103,7 +103,7 @@ Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
 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 <<EOF || exit 1
 $TMP.4: warning: copyright statement not found
@@ -145,7 +145,7 @@ Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
 EOF
 
 UPDATE_COPYRIGHT_YEAR=2010 UPDATE_COPYRIGHT_USE_INTERVALS=1 \
-  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 <<EOF || exit 1
 $TMP.4: warning: copyright statement not found
@@ -183,7 +183,7 @@ Copyright (C) 1990-2005, 2007-2009 Acme, Inc.
 EOF
 
 UPDATE_COPYRIGHT_YEAR=2010 UPDATE_COPYRIGHT_FORCE=1 \
-  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 <<EOF || exit 1
 $TMP.4: warning: copyright statement not found