From f77576a775f483c61adda2732ded9a76be9c0230 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Fri, 16 Nov 2007 09:35:54 +0100 Subject: 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. --- tests/misc/base64 | 2 +- tests/misc/basename | 2 +- tests/misc/cut | 2 +- tests/misc/date | 2 +- tests/misc/dircolors | 2 +- tests/misc/dirname | 2 +- tests/misc/expand | 2 +- tests/misc/expr | 2 +- tests/misc/factor | 2 +- tests/misc/fmt | 2 +- tests/misc/fold | 2 +- tests/misc/head-elide-tail | 2 +- tests/misc/ls-misc | 2 +- tests/misc/md5sum | 2 +- tests/misc/md5sum-newline | 2 +- tests/misc/mktemp | 2 +- tests/misc/od | 2 +- tests/misc/paste-no-nl | 2 +- tests/misc/pr | 2 +- tests/misc/seq | 2 +- tests/misc/sha1sum | 2 +- tests/misc/sha1sum-vec | 2 +- tests/misc/sha224sum | 2 +- tests/misc/sha256sum | 2 +- tests/misc/sha384sum | 2 +- tests/misc/sha512sum | 2 +- tests/misc/sort-merge | 2 +- tests/misc/stat-printf | 2 +- tests/misc/sum | 2 +- tests/misc/test-diag | 2 +- tests/misc/tsort | 2 +- tests/misc/unexpand | 2 +- tests/misc/wc-files0-from | 2 +- tests/misc/xstrtol | 2 +- 34 files changed, 34 insertions(+), 34 deletions(-) (limited to 'tests/misc') diff --git a/tests/misc/base64 b/tests/misc/base64 index 56c5e2427..3276635e8 100755 --- a/tests/misc/base64 +++ b/tests/misc/base64 @@ -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 diff --git a/tests/misc/basename b/tests/misc/basename index 07b118559..e492b9e0d 100755 --- a/tests/misc/basename +++ b/tests/misc/basename @@ -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 diff --git a/tests/misc/cut b/tests/misc/cut index 44758343c..0a8ae3ae6 100755 --- a/tests/misc/cut +++ b/tests/misc/cut @@ -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 diff --git a/tests/misc/date b/tests/misc/date index 61a6f3e94..7408ea277 100755 --- a/tests/misc/date +++ b/tests/misc/date @@ -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 diff --git a/tests/misc/dircolors b/tests/misc/dircolors index e93d2fb7d..01f221128 100755 --- a/tests/misc/dircolors +++ b/tests/misc/dircolors @@ -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 diff --git a/tests/misc/dirname b/tests/misc/dirname index 7d0ffda8a..0530175bf 100755 --- a/tests/misc/dirname +++ b/tests/misc/dirname @@ -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 diff --git a/tests/misc/expand b/tests/misc/expand index 7772fefe7..b58ff2970 100755 --- a/tests/misc/expand +++ b/tests/misc/expand @@ -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 diff --git a/tests/misc/expr b/tests/misc/expr index 2a7f4c0d5..360d90583 100755 --- a/tests/misc/expr +++ b/tests/misc/expr @@ -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 diff --git a/tests/misc/factor b/tests/misc/factor index e6d3bcf71..ebe0d6434 100755 --- a/tests/misc/factor +++ b/tests/misc/factor @@ -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 diff --git a/tests/misc/fmt b/tests/misc/fmt index 043bf723a..0cc9ba251 100755 --- a/tests/misc/fmt +++ b/tests/misc/fmt @@ -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 diff --git a/tests/misc/fold b/tests/misc/fold index df017019e..a43ebf12f 100755 --- a/tests/misc/fold +++ b/tests/misc/fold @@ -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 diff --git a/tests/misc/head-elide-tail b/tests/misc/head-elide-tail index ad1fef797..4bdcf535b 100755 --- a/tests/misc/head-elide-tail +++ b/tests/misc/head-elide-tail @@ -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 diff --git a/tests/misc/ls-misc b/tests/misc/ls-misc index 4fb8f1662..520c5031e 100755 --- a/tests/misc/ls-misc +++ b/tests/misc/ls-misc @@ -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 diff --git a/tests/misc/md5sum b/tests/misc/md5sum index 43407a40e..1b12e83ad 100755 --- a/tests/misc/md5sum +++ b/tests/misc/md5sum @@ -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 diff --git a/tests/misc/md5sum-newline b/tests/misc/md5sum-newline index 22717d41e..e20f0be8e 100755 --- a/tests/misc/md5sum-newline +++ b/tests/misc/md5sum-newline @@ -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 diff --git a/tests/misc/mktemp b/tests/misc/mktemp index da576e8b2..ed4b3c2bf 100755 --- a/tests/misc/mktemp +++ b/tests/misc/mktemp @@ -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 diff --git a/tests/misc/od b/tests/misc/od index 2395fa118..d827c2b07 100755 --- a/tests/misc/od +++ b/tests/misc/od @@ -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 diff --git a/tests/misc/paste-no-nl b/tests/misc/paste-no-nl index 68f53a12e..aa5049c7a 100755 --- a/tests/misc/paste-no-nl +++ b/tests/misc/paste-no-nl @@ -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 diff --git a/tests/misc/pr b/tests/misc/pr index 76c32d6b0..0b7e0a210 100755 --- a/tests/misc/pr +++ b/tests/misc/pr @@ -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 diff --git a/tests/misc/seq b/tests/misc/seq index ec843bcf0..17c8f0c6c 100755 --- a/tests/misc/seq +++ b/tests/misc/seq @@ -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 diff --git a/tests/misc/sha1sum b/tests/misc/sha1sum index 975c570f5..62de889d7 100755 --- a/tests/misc/sha1sum +++ b/tests/misc/sha1sum @@ -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 diff --git a/tests/misc/sha1sum-vec b/tests/misc/sha1sum-vec index d20904168..2dd666c39 100755 --- a/tests/misc/sha1sum-vec +++ b/tests/misc/sha1sum-vec @@ -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 diff --git a/tests/misc/sha224sum b/tests/misc/sha224sum index 220a49864..1fdfd3d50 100755 --- a/tests/misc/sha224sum +++ b/tests/misc/sha224sum @@ -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 diff --git a/tests/misc/sha256sum b/tests/misc/sha256sum index 2d6a0d963..f4f25d863 100755 --- a/tests/misc/sha256sum +++ b/tests/misc/sha256sum @@ -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 diff --git a/tests/misc/sha384sum b/tests/misc/sha384sum index 1d3aff003..bfb9ed092 100755 --- a/tests/misc/sha384sum +++ b/tests/misc/sha384sum @@ -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 diff --git a/tests/misc/sha512sum b/tests/misc/sha512sum index 74deec5f3..55798fc70 100755 --- a/tests/misc/sha512sum +++ b/tests/misc/sha512sum @@ -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 diff --git a/tests/misc/sort-merge b/tests/misc/sort-merge index 7884ef62c..2795b60f5 100755 --- a/tests/misc/sort-merge +++ b/tests/misc/sort-merge @@ -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 diff --git a/tests/misc/stat-printf b/tests/misc/stat-printf index 695be26c9..60d7b6ffa 100755 --- a/tests/misc/stat-printf +++ b/tests/misc/stat-printf @@ -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 diff --git a/tests/misc/sum b/tests/misc/sum index 527170798..d87bdd03f 100755 --- a/tests/misc/sum +++ b/tests/misc/sum @@ -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 diff --git a/tests/misc/test-diag b/tests/misc/test-diag index f5d767276..9f0c7cd70 100755 --- a/tests/misc/test-diag +++ b/tests/misc/test-diag @@ -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 diff --git a/tests/misc/tsort b/tests/misc/tsort index 790502034..9a078aec4 100755 --- a/tests/misc/tsort +++ b/tests/misc/tsort @@ -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 diff --git a/tests/misc/unexpand b/tests/misc/unexpand index 9752524d5..e35434403 100755 --- a/tests/misc/unexpand +++ b/tests/misc/unexpand @@ -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 diff --git a/tests/misc/wc-files0-from b/tests/misc/wc-files0-from index 1d46b2a34..6d0bb8c99 100755 --- a/tests/misc/wc-files0-from +++ b/tests/misc/wc-files0-from @@ -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 diff --git a/tests/misc/xstrtol b/tests/misc/xstrtol index aa2b8a7b5..7fdc4da56 100755 --- a/tests/misc/xstrtol +++ b/tests/misc/xstrtol @@ -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 -- cgit v1.2.3-70-g09d2