summaryrefslogtreecommitdiff
path: root/tests/local.at
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2012-03-07 10:40:11 -0700
committerEric Blake <eblake@redhat.com>2012-03-07 10:41:37 -0700
commit220f8c240df11dcf0829d86d33e3f354fe87e0ad (patch)
treea2edb1a2db3aa38a601bcf4959677ccf9346b089 /tests/local.at
parent16126bc4302f2cb1b4bd06ca7d7da31d2f82156a (diff)
downloadautoconf-220f8c240df11dcf0829d86d33e3f354fe87e0ad.tar.gz
tests: ignore ksh -n warnings
Recent ksh is noisy: $ ksh -nc '``'; echo $? ksh: warning: line 1: `...` obsolete, use $(...) 0 * tests/local.at (AT_CHECK_SHELL_SYNTAX): Ignore noisy ksh on. Reported by Martin Zaun. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/local.at')
-rw-r--r--tests/local.at5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/local.at b/tests/local.at
index eb01cc0a..66027e83 100644
--- a/tests/local.at
+++ b/tests/local.at
@@ -47,10 +47,11 @@ AT_CHECK([$at_diff "$1" "$2"])
# AT_CHECK_SHELL_SYNTAX(PROGRAM)
# ------------------------------
# If the shell handles `-n' well, use it to check the syntax of PROGRAM;
-# otherwise, do nothing.
+# otherwise, do nothing. ksh93 -n also spits outs loads of warnings
+# about older constructs, but we don't care about the warnings.
m4_define([AT_CHECK_SHELL_SYNTAX],
[AT_SKIP_IF([test "$ac_cv_sh_n_works" != yes])
-AT_CHECK([/bin/sh -n $1])])
+AT_CHECK([/bin/sh -n $1], [], [], [ignore])])
m4_define([AT_CHECK_PERL_SYNTAX],
[AT_CHECK([autom4te_perllibdir=$abs_top_srcdir/lib $PERL -c "$abs_top_builddir"/bin/$1],