]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
tests: fix spurious failure for awk implementation of TAP driver
authorStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 26 Aug 2011 09:11:36 +0000 (11:11 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 26 Aug 2011 09:11:36 +0000 (11:11 +0200)
* tests/tap-realtime.test: The awk+shell implementation of the TAP
driver must "read ahead" of one line in order to catch the exit
status of the test script it runs.  So, in the TAP-producer script
here, be sure to echo one "dummy" line after each TAP result line
in order not to cause false positives.

ChangeLog
tests/tap-realtime.test

index e407d8989209f8e86d7e9c11ecb8b69ed8d5ca89..666445abffa838a71bbf5923f1a56b02f3391592 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2011-08-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
+
+       tests: fix spurious failure for awk implementation of TAP driver
+       * tests/tap-realtime.test: The awk+shell implementation of the TAP
+       driver must "read ahead" of one line in order to catch the exit
+       status of the test script it runs.  So, in the TAP-producer script
+       here, be sure to echo one "dummy" line after each TAP result line
+       in order not to cause false positives.
+
 2011-08-25  Stefano Lattarini  <stefano.lattarini@gmail.com>
 
        tap/awk: allow escaping of TAP directives
index 4a38f1422d03af6416754b9c71bf19d4be8b715f..61476c38b76603e33b8a13e2393af3742db6d58e 100755 (executable)
@@ -47,15 +47,23 @@ echo 1..3
 # FIXME: creative quoting to placate maintainer-check
 sleep="sleep "3
 
+# The awk+shell implementation of the TAP driver must "read ahead" of one
+# line in order to catch the exit status of the test script it runs.  So
+# be sure to echo one "dummy" line after each result line in order not to
+# cause false positives.
+
 echo ok 1 - foo
+echo DUMMY
 $sleep
 test -f ok-1 || { echo 'Bail out!'; exit 1; }
 
 echo ok 2 - bar
+echo DUMMY
 $sleep
 test -f ok-2 || { echo 'Bail out!'; exit 1; }
 
 echo ok 3 - baz
+echo DUMMY
 $sleep
 test -f ok-3 || { echo 'Bail out!'; exit 1; }