aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--test/ChangeLog6
-rw-r--r--test/Makefile.am11
-rw-r--r--test/Makefile.in11
-rw-r--r--test/pipeio3.awk15
-rw-r--r--test/pipeio3.ok6
-rw-r--r--test/pipeio3.ok24
6 files changed, 8 insertions, 45 deletions
diff --git a/test/ChangeLog b/test/ChangeLog
index ccdeaa0b..07a547f2 100644
--- a/test/ChangeLog
+++ b/test/ChangeLog
@@ -1,3 +1,9 @@
+2013-11-29 Arnold D. Robbins <arnold@skeeve.com>
+
+ * Makefile.am (pipeio3): Removed test and reference to files.
+ It was too ful of race conditions to work reliably everywhere.
+ * pipeio3.awk, pipeio3.ok, pipeio3.ok2: Removed.
+
2013-11-28 Arnold D. Robbins <arnold@skeeve.com>
* readdir0.awk: Take argument which is directory to read.
diff --git a/test/Makefile.am b/test/Makefile.am
index 0562f536..011e9394 100644
--- a/test/Makefile.am
+++ b/test/Makefile.am
@@ -655,9 +655,6 @@ EXTRA_DIST = \
pipeio2.awk \
pipeio2.in \
pipeio2.ok \
- pipeio3.awk \
- pipeio3.ok \
- pipeio3.ok2 \
posix.awk \
posix.in \
posix.ok \
@@ -977,7 +974,7 @@ BASIC_TESTS = \
zero2 zeroe0 zeroflag
UNIX_TESTS = \
- fflush getlnhd localenl pid pipeio1 pipeio2 pipeio3 poundbang \
+ fflush getlnhd localenl pid pipeio1 pipeio2 poundbang \
rtlen rtlen01 space strftlng
GAWK_EXT_TESTS = \
@@ -1890,12 +1887,6 @@ backsmalls2:
AWKPATH="$(srcdir)" $(AWK) -f $@.awk "$(srcdir)"/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-pipeio3:
- @echo $@
- @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
- @sed 's/.*sh.*cart:.*not found/sh: 1: cart: not found/' < _$@ >_x$@ ; mv _x$@ _$@
- @-$(CMP) "$(srcdir)"/$@.ok _$@ || $(CMP) "$(srcdir)"/$@.ok2 _$@ && rm -f _$@
-
# Targets generated for other tests:
include Maketests
diff --git a/test/Makefile.in b/test/Makefile.in
index aa23dc4b..7264221b 100644
--- a/test/Makefile.in
+++ b/test/Makefile.in
@@ -873,9 +873,6 @@ EXTRA_DIST = \
pipeio2.awk \
pipeio2.in \
pipeio2.ok \
- pipeio3.awk \
- pipeio3.ok \
- pipeio3.ok2 \
posix.awk \
posix.in \
posix.ok \
@@ -1194,7 +1191,7 @@ BASIC_TESTS = \
zero2 zeroe0 zeroflag
UNIX_TESTS = \
- fflush getlnhd localenl pid pipeio1 pipeio2 pipeio3 poundbang \
+ fflush getlnhd localenl pid pipeio1 pipeio2 poundbang \
rtlen rtlen01 space strftlng
GAWK_EXT_TESTS = \
@@ -2284,12 +2281,6 @@ backsmalls2:
@[ -z "$$GAWKLOCALE" ] && GAWKLOCALE=en_US.UTF-8; \
AWKPATH="$(srcdir)" $(AWK) -f $@.awk "$(srcdir)"/$@.in >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
@-$(CMP) "$(srcdir)"/$@.ok _$@ && rm -f _$@
-
-pipeio3:
- @echo $@
- @AWKPATH="$(srcdir)" $(AWK) -f $@.awk >_$@ 2>&1 || echo EXIT CODE: $$? >>_$@
- @sed 's/.*sh.*cart:.*not found/sh: 1: cart: not found/' < _$@ >_x$@ ; mv _x$@ _$@
- @-$(CMP) "$(srcdir)"/$@.ok _$@ || $(CMP) "$(srcdir)"/$@.ok2 _$@ && rm -f _$@
Gt-dummy:
# file Maketests, generated from Makefile.am by the Gentests program
addcomma:
diff --git a/test/pipeio3.awk b/test/pipeio3.awk
deleted file mode 100644
index a1cd3743..00000000
--- a/test/pipeio3.awk
+++ /dev/null
@@ -1,15 +0,0 @@
-BEGIN {
- outputCommand = "cart"
- inputCommand = "ls"
-
- print "doing first print" > "/dev/stderr"
- print "hello" | outputCommand
-
- print "doing first getline" > "/dev/stderr"
- inputCommand | getline
-
- print "doing second print" > "/dev/stderr"
- print "hello" | outputCommand
-
- print "made it here" > "/dev/stderr"
-}
diff --git a/test/pipeio3.ok b/test/pipeio3.ok
deleted file mode 100644
index 17a08e9c..00000000
--- a/test/pipeio3.ok
+++ /dev/null
@@ -1,6 +0,0 @@
-doing first print
-doing first getline
-sh: 1: cart: not found
-doing second print
-gawk: pipeio3.awk:12: fatal: print to "cart" failed (Broken pipe)
-EXIT CODE: 2
diff --git a/test/pipeio3.ok2 b/test/pipeio3.ok2
deleted file mode 100644
index 25d26293..00000000
--- a/test/pipeio3.ok2
+++ /dev/null
@@ -1,4 +0,0 @@
-doing first print
-sh: 1: cart: not found
-gawk: pipeio3.awk:6: fatal: print to "cart" failed (Broken pipe)
-EXIT CODE: 2