aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--pc/Makefile3
-rw-r--r--test/ChangeLog8
-rw-r--r--test/iolint.awk15
-rw-r--r--test/iolint.ok14
4 files changed, 25 insertions, 15 deletions
diff --git a/pc/Makefile b/pc/Makefile
index 0dc8bb40..1055a983 100644
--- a/pc/Makefile
+++ b/pc/Makefile
@@ -85,6 +85,7 @@ MAK = $(MAKE) $(MAKEFILE)
prefix = c:/gnu
pkgdatadir = $(prefix)/lib/awk
pkgextensiondir = $(prefix)/lib/gawk
+DEFPATH = "\".;$(pkgdatadir);c:/lib/awk;c:/gnu/lib/awk\""
DEFLIBPATH = "\"$(pkgextensiondir)\""
LOCALEDIR="\"$(prefix)/share/locale\""
SHLIBEXT = "\"dll\""
@@ -228,7 +229,7 @@ BIND = EMPTY
PBIND = EMPTY
EMPTY=
-CFLAGS = $(CF) -DGAWK -I. -I./support -DHAVE_CONFIG_H -DDEFLIBPATH=$(DEFLIBPATH) -DSHLIBEXT=$(SHLIBEXT) -DLOCALEDIR=$(LOCALEDIR)
+CFLAGS = $(CF) -DGAWK -I. -I./support -DHAVE_CONFIG_H -DDEFPATH=$(DEFPATH) -DDEFLIBPATH=$(DEFLIBPATH) -DSHLIBEXT=$(SHLIBEXT) -DLOCALEDIR=$(LOCALEDIR)
# object files
AWKOBJS1 = array$O builtin$O eval$O field$O floatcomp$O gawkmisc$O io$O main$O
diff --git a/test/ChangeLog b/test/ChangeLog
index d43ba1b0..c92f0188 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,11 @@
+2021-05-15 Eli Zaretskii <eliz@gnu.org>
+
+ * iolint.ok: Reorder results to follow the order of iolint.awk.
+
+ * iolint.awk: Use "BINMODE = 2", otherwise the result of cksum on
+ non-Posix platforms will not match. Reorder the tests to make the
+ binary mode used only in the last one.
+
2021-05-13 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.am (EXPECTED_FAIL_ZOS): Updated and sorted / uniqued.
diff --git a/test/iolint.awk b/test/iolint.awk
index a866ed6d..257678ed 100644
--- a/test/iolint.awk
+++ b/test/iolint.awk
@@ -37,13 +37,6 @@ BEGIN {
print close("f2") # -1 expected here
fflush()
- # `%.*s' used for output file and output pipe"
- print "junk" > "cksum" # cksum is more portable than md5sum
- print "hello" | "cksum"
- print close("cksum")
- print close("cksum")
- fflush()
-
# `%.*s' used for input pipe and output file
"echo hello" | getline junk
print "hello" > "echo hello"
@@ -68,4 +61,12 @@ BEGIN {
print close("echo hello")
print close("echo hello")
fflush()
+
+ # `%.*s' used for output file and output pipe"
+ BINMODE = 2
+ print "junk" > "cksum" # cksum is more portable than md5sum
+ print "hello" | "cksum"
+ print close("cksum")
+ print close("cksum")
+ fflush()
}
diff --git a/test/iolint.ok b/test/iolint.ok
index 0008b0aa..fbf514c2 100644
--- a/test/iolint.ok
+++ b/test/iolint.ok
@@ -16,18 +16,18 @@ gawk: iolint.awk:35: warning: unnecessary mixing of `>' and `>>' for file `f2'
0
gawk: iolint.awk:37: warning: close: `f2' is not an open file, pipe or co-process
-1
-gawk: iolint.awk:42: warning: `cksum' used for output file and output pipe
-3015617425 6
-0
-0
-gawk: iolint.awk:49: warning: `echo hello' used for input pipe and output file
+gawk: iolint.awk:42: warning: `echo hello' used for input pipe and output file
0
0
-gawk: iolint.awk:60: warning: `cat' used for output file and output pipe
+gawk: iolint.awk:53: warning: `cat' used for output file and output pipe
0
hello
0
-gawk: iolint.awk:67: warning: `echo hello' used for input pipe and output pipe
+gawk: iolint.awk:60: warning: `echo hello' used for input pipe and output pipe
hello
0
0
+gawk: iolint.awk:68: warning: `cksum' used for output file and output pipe
+3015617425 6
+0
+0