Port to Solaris 8 perl, which does not support "use warnings;".
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 16 Nov 2007 08:35:54 +0000 (09:35 +0100)
committerJim Meyering <meyering@redhat.com>
Fri, 16 Nov 2007 08:35:54 +0000 (09:35 +0100)
* tests/dd/skip-seek: Skip test if "use warnings;" fails.
* tests/du/files0-from: Likewise.
* tests/misc/base64: Likewise.
* tests/misc/basename: Likewise.
* tests/misc/cut: Likewise.
* tests/misc/date: Likewise.
* tests/misc/dircolors: Likewise.
* tests/misc/dirname: Likewise.
* tests/misc/expand: Likewise.
* tests/misc/expr: Likewise.
* tests/misc/factor: Likewise.
* tests/misc/fmt: Likewise.
* tests/misc/fold: Likewise.
* tests/misc/head-elide-tail: Likewise.
* tests/misc/ls-misc: Likewise.
* tests/misc/md5sum: Likewise.
* tests/misc/md5sum-newline: Likewise.
* tests/misc/mktemp: Likewise.
* tests/misc/od: Likewise.
* tests/misc/paste-no-nl: Likewise.
* tests/misc/pr: Likewise.
* tests/misc/seq: Likewise.
* tests/misc/sha1sum: Likewise.
* tests/misc/sha1sum-vec: Likewise.
* tests/misc/sha224sum: Likewise.
* tests/misc/sha256sum: Likewise.
* tests/misc/sha384sum: Likewise.
* tests/misc/sha512sum: Likewise.
* tests/misc/sort-merge: Likewise.
* tests/misc/stat-printf: Likewise.
* tests/misc/sum: Likewise.
* tests/misc/test-diag: Likewise.
* tests/misc/tsort: Likewise.
* tests/misc/unexpand: Likewise.
* tests/misc/wc-files0-from: Likewise.
* tests/misc/xstrtol: Likewise.
* tests/mv/i-1: Likewise.
* tests/rm/empty-name: Likewise.
* tests/rm/unreadable: Likewise.

40 files changed:
ChangeLog
tests/dd/skip-seek
tests/du/files0-from
tests/misc/base64
tests/misc/basename
tests/misc/cut
tests/misc/date
tests/misc/dircolors
tests/misc/dirname
tests/misc/expand
tests/misc/expr
tests/misc/factor
tests/misc/fmt
tests/misc/fold
tests/misc/head-elide-tail
tests/misc/ls-misc
tests/misc/md5sum
tests/misc/md5sum-newline
tests/misc/mktemp
tests/misc/od
tests/misc/paste-no-nl
tests/misc/pr
tests/misc/seq
tests/misc/sha1sum
tests/misc/sha1sum-vec
tests/misc/sha224sum
tests/misc/sha256sum
tests/misc/sha384sum
tests/misc/sha512sum
tests/misc/sort-merge
tests/misc/stat-printf
tests/misc/sum
tests/misc/test-diag
tests/misc/tsort
tests/misc/unexpand
tests/misc/wc-files0-from
tests/misc/xstrtol
tests/mv/i-1
tests/rm/empty-name
tests/rm/unreadable

index ab62224..df756b9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,46 @@
+2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
+
+       Port to Solaris 8 perl, which does not support "use warnings;".
+       * tests/dd/skip-seek: Skip test if "use warnings;" fails.
+       * tests/du/files0-from: Likewise.
+       * tests/misc/base64: Likewise.
+       * tests/misc/basename: Likewise.
+       * tests/misc/cut: Likewise.
+       * tests/misc/date: Likewise.
+       * tests/misc/dircolors: Likewise.
+       * tests/misc/dirname: Likewise.
+       * tests/misc/expand: Likewise.
+       * tests/misc/expr: Likewise.
+       * tests/misc/factor: Likewise.
+       * tests/misc/fmt: Likewise.
+       * tests/misc/fold: Likewise.
+       * tests/misc/head-elide-tail: Likewise.
+       * tests/misc/ls-misc: Likewise.
+       * tests/misc/md5sum: Likewise.
+       * tests/misc/md5sum-newline: Likewise.
+       * tests/misc/mktemp: Likewise.
+       * tests/misc/od: Likewise.
+       * tests/misc/paste-no-nl: Likewise.
+       * tests/misc/pr: Likewise.
+       * tests/misc/seq: Likewise.
+       * tests/misc/sha1sum: Likewise.
+       * tests/misc/sha1sum-vec: Likewise.
+       * tests/misc/sha224sum: Likewise.
+       * tests/misc/sha256sum: Likewise.
+       * tests/misc/sha384sum: Likewise.
+       * tests/misc/sha512sum: Likewise.
+       * tests/misc/sort-merge: Likewise.
+       * tests/misc/stat-printf: Likewise.
+       * tests/misc/sum: Likewise.
+       * tests/misc/test-diag: Likewise.
+       * tests/misc/tsort: Likewise.
+       * tests/misc/unexpand: Likewise.
+       * tests/misc/wc-files0-from: Likewise.
+       * tests/misc/xstrtol: Likewise.
+       * tests/mv/i-1: Likewise.
+       * tests/rm/empty-name: Likewise.
+       * tests/rm/unreadable: Likewise.
+
 2007-11-15  Andreas Schwab  <schwab@suse.de>
 
        * m4/include-exclude-prog.m4 (gl_REMOVE_PROG): Fix syntax error.
index a30195e..f2c0393 100755 (executable)
@@ -21,7 +21,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index cb82dae..88f83aa 100755 (executable)
@@ -21,7 +21,7 @@
 : ${srcdir=.}
 
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 56c5e24..3276635 100755 (executable)
@@ -22,7 +22,7 @@
 
 PROG=`echo $0|sed 's,.*/,,'`; export PROG
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 07b1185..e492b9e 100755 (executable)
@@ -21,7 +21,7 @@
 
 PROG=`echo $0|sed 's,.*/,,'`; export PROG
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 4475834..0a8ae3a 100755 (executable)
@@ -19,7 +19,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 61a6f3e..7408ea2 100755 (executable)
@@ -19,7 +19,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index e93d2fb..01f2211 100755 (executable)
@@ -19,7 +19,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 7d0ffda..0530175 100755 (executable)
@@ -22,7 +22,7 @@
 
 PROG=`echo $0|sed 's,.*/,,'`; export PROG
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 7772fef..b58ff29 100755 (executable)
@@ -22,7 +22,7 @@
 
 PROG=`echo $0|sed 's,.*/,,'`; export PROG
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 2a7f4c0..360d905 100755 (executable)
@@ -20,7 +20,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index e6d3bcf..ebe0d64 100755 (executable)
@@ -21,7 +21,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 043bf72..0cc9ba2 100755 (executable)
@@ -21,7 +21,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index df01701..a43ebf1 100755 (executable)
@@ -22,7 +22,7 @@
 
 PROG=`echo $0|sed 's,.*/,,'`; export PROG
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index ad1fef7..4bdcf53 100755 (executable)
@@ -20,7 +20,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 4fb8f16..520c503 100755 (executable)
@@ -19,7 +19,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 43407a4..1b12e83 100755 (executable)
@@ -19,7 +19,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 22717d4..e20f0be 100755 (executable)
@@ -19,7 +19,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index da576e8..ed4b3c2 100755 (executable)
@@ -21,7 +21,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 2395fa1..d827c2b 100755 (executable)
@@ -22,7 +22,7 @@
 
 PROG=`echo $0|sed 's,.*/,,'`; export PROG
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 68f53a1..aa5049c 100755 (executable)
@@ -20,7 +20,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 76c32d6..0b7e0a2 100755 (executable)
@@ -21,7 +21,7 @@
 : ${srcdir=.}
 
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index ec843bc..17c8f0c 100755 (executable)
@@ -20,7 +20,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 975c570..62de889 100755 (executable)
@@ -19,7 +19,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index d209041..2dd666c 100755 (executable)
@@ -19,7 +19,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 220a498..1fdfd3d 100755 (executable)
@@ -21,7 +21,7 @@
 
 PROG=`echo $0|sed 's,.*/,,'`; export PROG
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 2d6a0d9..f4f25d8 100755 (executable)
@@ -21,7 +21,7 @@
 
 PROG=`echo $0|sed 's,.*/,,'`; export PROG
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 1d3aff0..bfb9ed0 100755 (executable)
@@ -21,7 +21,7 @@
 
 PROG=`echo $0|sed 's,.*/,,'`; export PROG
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 74deec5..55798fc 100755 (executable)
@@ -21,7 +21,7 @@
 
 PROG=`echo $0|sed 's,.*/,,'`; export PROG
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 7884ef6..2795b60 100755 (executable)
@@ -19,7 +19,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 695be26..60d7b6f 100755 (executable)
@@ -19,7 +19,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 5271707..d87bdd0 100755 (executable)
@@ -19,7 +19,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index f5d7672..9f0c7cd 100755 (executable)
@@ -19,7 +19,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 7905020..9a078ae 100755 (executable)
@@ -20,7 +20,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 9752524..e354344 100755 (executable)
@@ -19,7 +19,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 1d46b2a..6d0bb8c 100755 (executable)
@@ -24,7 +24,7 @@
 
 PROG=`echo $0|sed 's,.*/,,'`; export PROG
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index aa2b8a7..7fdc4da 100755 (executable)
@@ -24,7 +24,7 @@ fi
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index d516859..0fee59c 100755 (executable)
@@ -19,7 +19,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index ead8422..a2af5be 100755 (executable)
@@ -24,7 +24,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77
index 4af8280..16c4c92 100755 (executable)
@@ -19,7 +19,7 @@
 : ${PERL=perl}
 : ${srcdir=.}
 
-$PERL -e 1 > /dev/null 2>&1 || {
+$PERL -e 'use warnings;' > /dev/null 2>&1 || {
   echo 1>&2 "$0: configure didn't find a usable version of Perl," \
     "so can't run this test"
   exit 77