X-Git-Url: https://git.draconx.ca/gitweb/gob-dx.git/blobdiff_plain/1aa75d411dd68f6e015a747a39b5179cb5573bb8..f0cd5b9c13a412c2248b74da2cef04ec9bcffc10:/tests/options.at diff --git a/tests/options.at b/tests/options.at index 53eda46..f8d56e4 100644 --- a/tests/options.at +++ b/tests/options.at @@ -1,4 +1,4 @@ -dnl Copyright © 2020 Nick Bowler +dnl Copyright © 2020-2021 Nick Bowler dnl License GPLv2+: GNU General Public License version 2 or any later version. dnl This is free software: you are free to change and redistribute it. dnl There is NO WARRANTY, to the extent permitted by law. @@ -569,6 +569,18 @@ AT_CHECK([gob2 --m4 filename --help I am trapped in a test case factory --], [0], [], [experr]) AT_CHECK([test -f m4-test.c]) +set x $gob_m4_args; shift +for arg +do + shift + AS_CASE([$arg], [filename], [], [*], [set x "$@" "$arg"; shift]) +done + +cat >experr <