shithub: trueawk

Download patch

ref: 0e1bebcc09e647ab3f7f6bd8fba34ee4a64efc48
parent: b73bfabb42061208f3e534db51ea760d95a307dc
author: Arnold D. Robbins <arnold@skeeve.com>
date: Fri Nov 8 09:36:37 EST 2019

Small fixes in the test suite.

--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2019-11-08         Arnold D. Robbins     <arnold@skeeve.com>
+
+	* test/T.chem: Use $oldawk instead of hardwiring 'awk'.
+	* test/T.lilly: Remove gawk warnings from output, improves
+	portability.
+
 2019-10-07         Arnold D. Robbins     <arnold@skeeve.com>
 
 	* b.c (fnematch): Change type of pbuf from unsigned char to char.
--- a/testdir/T.chem
+++ b/testdir/T.chem
@@ -1,10 +1,11 @@
 echo T.chem:  test chem.awk
 
 awk=${awk-../a.out}
+oldawk=${oldawk-awk}
 
 for i in lsd1.p penicil.p res.p
 do
 	$awk -f chem.awk $i >foo1
-	awk -f chem.awk $i >foo2
+	$oldawk -f chem.awk $i >foo2
 	diff foo1 foo2 || echo "BAD: T.chem on $i"
 done
--- a/testdir/T.lilly
+++ b/testdir/T.lilly
@@ -22,7 +22,7 @@
 
 echo `cat lilly.progs | wc -l` tests
 
-sed -e 's/awk://' -e 's/Syntax/syntax/' foo1 >glop1
+sed -e 's/awk://' -e 's/Syntax/syntax/' -e '/warning:/d' foo1 >glop1
 sed 's/..\/a.out://' foo2 >glop2
 diff glop1 glop2 >lilly.diff || echo 'bad: T.lilly is different'
 echo
--