automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[FYI] {maint} runtest: avoid spurious failure on NetBSD


From: Stefano Lattarini
Subject: [FYI] {maint} runtest: avoid spurious failure on NetBSD
Date: Sun, 5 Aug 2012 12:05:59 +0200

* 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 <address@hidden>
---
 runtest.in | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/runtest.in b/runtest.in
index c2c5d1f..f5068e8 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
-- 
1.7.12.rc0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]