test-update-copyright.sh: skip test if Perl is too old
authorJim Meyering <meyering@redhat.com>
Thu, 2 Sep 2010 11:51:56 +0000 (13:51 +0200)
committerJim Meyering <meyering@redhat.com>
Thu, 2 Sep 2010 11:51:56 +0000 (13:51 +0200)
* tests/test-update-copyright.sh: Exit 77 if Perl is too old.
Reported by Tom G. Christensen.

ChangeLog
tests/test-update-copyright.sh

index edb5ab5..239d4b2 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-09-02  Jim Meyering  <meyering@redhat.com>
+
+       test-update-copyright.sh: skip test if Perl is too old
+       * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
+       Reported by Tom G. Christensen.
+
 2010-09-02  Bruno Haible  <bruno@clisp.org>
 
        wctype: Avoid compilation error on IRIX 6.5.30.
index 2d1022a..607928d 100755 (executable)
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
+# Skip this test if Perl is too old.  FIXME: 5.6.0 is just a guess.
+# We have a report that 5.004_05 is inadequate and that 5.8.8 works.
+perl -e 'require 5.6.0' || exit 77
+
 diffout=`diff -u /dev/null /dev/null 2>&1`
 if test x"$diffout" = x"" && test $? -eq 0; then
   compare() { diff -u "$@"; }