]> git.draconx.ca Git - cdecl99.git/commitdiff
tests: Avoid using awk -v option.
authorNick Bowler <nbowler@draconx.ca>
Tue, 5 Dec 2023 05:37:35 +0000 (00:37 -0500)
committerNick Bowler <nbowler@draconx.ca>
Tue, 5 Dec 2023 05:38:56 +0000 (00:38 -0500)
Traditional awk implementations do not support -v, and this is also
the case with ULTRIX 4.5 nawk.  The tests that use -v don't actually
need to use it, so it doesn't hurt to fix this.

tests/general.at

index 21261ed5ddc387557c38f2a1ce53bc4b4c659be8..fb4ee68fdad436c33e6fac9c573f855d93ae1e4c 100644 (file)
@@ -115,7 +115,7 @@ END { exit(status); }
 ]])
 
 AT_CHECK([LC_ALL=C cdecl99 --file=input || exit 42], [42], [], [stderr])
-AT_CHECK([$AWK -v progname="$progname" -f check.awk stderr])
+AT_CHECK([$AWK -f check.awk progname="$progname" stderr])
 
 exec 3<input
 set x; shift
@@ -123,7 +123,7 @@ while read line <&3; do
   set x "$@" "--execute=$line"; shift;
 done
 AT_CHECK([LC_ALL=C cdecl99 "$@" || exit 42], [42], [], [stderr])
-AT_CHECK([$AWK -v progname="$progname" -f check.awk stderr])
+AT_CHECK([$AWK f check.awk progname="$progname" stderr])
 
 AT_CLEANUP