aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2016-05-25 01:43:21 +0300
committerArnold D. Robbins <arnold@skeeve.com>2016-05-25 01:43:21 +0300
commitf193c48ab7d8da7e4d236f6f6570684f1fd612ba (patch)
treea4da22eb0509e2edf1aaa10402032f4309feb9d8
parent6d42ef2758af7fa3fd8040e924c20b60a1d0cb4a (diff)
downloadegawk-f193c48ab7d8da7e4d236f6f6570684f1fd612ba.tar.gz
egawk-f193c48ab7d8da7e4d236f6f6570684f1fd612ba.tar.bz2
egawk-f193c48ab7d8da7e4d236f6f6570684f1fd612ba.zip
Tweak arrayind1 test for portability.
-rw-r--r--test/ChangeLog5
-rwxr-xr-xtest/arrayind1.awk2
2 files changed, 7 insertions, 0 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index 927d23f6..2ba62311 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,8 @@
+2016-05-25 Arnold D. Robbins <arnold@skeeve.com>
+
+ * arrayind1.awk: Flush writes to stderr. We hope this helps
+ with the MinGW version.
+
2016-05-12 Arnold D. Robbins <arnold@skeeve.com>
* Makefile.am (arrayind1): New test.
diff --git a/test/arrayind1.awk b/test/arrayind1.awk
index 29fe80bc..fc3683f0 100755
--- a/test/arrayind1.awk
+++ b/test/arrayind1.awk
@@ -85,6 +85,7 @@ END{
iter++
#-->
printf("%s%16s\n","in the loop: ",posout["00000779770060"]) > "/dev/stderr"
+ fflush("/dev/stderr")
#-->
#printf("%10s%10s%10s%10s%16s%16s\n","round",iter,"included",posout[last],"last ",last) > "/dev/stderr"
}
@@ -95,5 +96,6 @@ END{
}
#--> this is the guilty line
printf("%s%16s\n","at the end: ",posout["00000779770060"]) > "/dev/stderr"
+ fflush("/dev/stderr")
#-->
}