* 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>
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