diff options
author | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-08-05 12:05:35 +0200 |
---|---|---|
committer | Stefano Lattarini <stefano.lattarini@gmail.com> | 2012-08-05 12:06:54 +0200 |
commit | b6a330e17bf0c7aca9bc7210f500aecee25077d0 (patch) | |
tree | 4f03fee7e09435e53db452fdd087829bbf1e066c | |
parent | ff23c81741c6c02b7087ab104a8c449702b193c5 (diff) | |
download | automake-b6a330e17bf0c7aca9bc7210f500aecee25077d0.tar.gz |
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 <stefano.lattarini@gmail.com>
-rw-r--r-- | runtest.in | 4 |
1 files changed, 2 insertions, 2 deletions
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 |