]> git.draconx.ca Git - dxcommon.git/blobdiff - snippet/test-tap.at
test-tap.at: Fix regression passing program arguments.
[dxcommon.git] / snippet / test-tap.at
index 2873cf463b41754320fe72365698afbc35f2fb83..ee4b54138268b1d0b228018c609d2bb2aad79b3b 100644 (file)
@@ -1,4 +1,4 @@
-# Copyright © 2015, 2022-2023 Nick Bowler
+# Copyright © 2015, 2022-2024 Nick Bowler
 #
 # Helper macros for executing the TAP-like applications in an autotest
 # test suite.
@@ -19,7 +19,7 @@ m4_defun([_TEST_TAP_PREPARE], [m4_divert_push([PREPARE_TESTS])dnl
 test_run_tap () {
   program=$[1]; shift
 
-  "$builddir/t/$program" "$@" >"$program.tap"
+  "$builddir/t/$program" "$[@]" >"$program.tap"
   status=$?
   cat "$program.tap"
   # Older versions of prove do not support the -e option so the