tap/awk: "Bail out!" recognized also after leading whitespace
authorStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 27 Dec 2011 10:45:59 +0000 (11:45 +0100)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Tue, 27 Dec 2011 17:30:00 +0000 (18:30 +0100)
commit2fa8a9e975ce30702c87bd827b61f6e59ad98678
tree8c1d3d64374a2e1bbd7acd263fa0faa97eb7b3bf
parent58f034a3eebeaa1b16415fbb76e02fe378d6413f
tap/awk: "Bail out!" recognized also after leading whitespace

Newer versions of TAP::Harness (e.g., 3.23 on Perl 5.14.1)
recognize a "Bail out!" directive also when it is prepended by
leading whitespace; this was not the case for older TAP:Harness
versions, (e.g., for version 3.17 on Perl 5.12.4), and for our
TAP driver implemented in awk.

* lib/tap-driver.sh: Handle the "Bail out!" directive also when
it is preceded by leading whitespace.
* tests/tap-spurious.test: Remove the tests checking that a
"Bail out!" string coming right after leading whitespace does
not trigger a bailout action.
* tests/tap-bailout-leading-space.test: New test.
* tests/list-of-tests.mk: Add it.

Problem reported by Jim Meyering in automake bug#10374.
ChangeLog
lib/tap-driver.sh
tests/list-of-tests.mk
tests/tap-bailout-leading-space.test [new file with mode: 0755]
tests/tap-no-spurious.test