From: Stefano Lattarini Date: Sun, 5 Aug 2012 10:05:35 +0000 (+0200) Subject: runtest: avoid spurious failures on NetBSD X-Git-Tag: v1.12.3~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6a330e17bf0c7aca9bc7210f500aecee25077d0;p=thirdparty%2Fautomake.git runtest: avoid spurious failures on NetBSD * runtest.in: Use ${1+"$@"} rather than simply "$@", because the 'set -u' setting used in the script causes the latter to trigger a spurious error with the NetBSD 5.1 /bin/sh ("./runtest: @: parameter not set") if there are no arguments to the test. Signed-off-by: Stefano Lattarini --- diff --git a/runtest.in b/runtest.in index c2c5d1f9d..f5068e86a 100644 --- a/runtest.in +++ b/runtest.in @@ -108,10 +108,10 @@ esac case $tst in *.sh) - exec $AM_TEST_RUNNER_SHELL $shell_opts "$tst" "$@" ;; + exec $AM_TEST_RUNNER_SHELL $shell_opts "$tst" ${1+"$@"} ;; *.tap) exec "$AM_PROVE_CMD" $AM_PROVEFLAGS -e \ - "$AM_TEST_RUNNER_SHELL $shell_opts" "$tst" "$@" ;; + "$AM_TEST_RUNNER_SHELL $shell_opts" "$tst" ${1+"$@"} ;; *) error "test '$tst' has an unrecognized extension" ;; esac