]> git.ipfire.org Git - thirdparty/automake.git/commit
tap: a "plan with SKIP" after test results is an error
authorStefano Lattarini <stefano.lattarini@gmail.com>
Wed, 10 Aug 2011 13:36:58 +0000 (15:36 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Fri, 12 Aug 2011 07:48:12 +0000 (09:48 +0200)
commitb2d6b49c50859a4b0773f6e20756e2ece20f092c
tree4b9c171369bc834c84dc2ea1e26ebf93f77a24a6
parent7fff2880a5e284f17cd6f0d869b0addeef7e1f55
tap: a "plan with SKIP" after test results is an error

This new behaviour is both more natural and more consistent with
that of the `prove' utility.

* lib/tap-driver (handle_tap_plan): Do not stop TAP parsing when
a "plan with SKIP" line (e.g., "1..0 # SKIP") is encountered, and
do not print a "SKIP" line if some TAP result has already been
seen.
* tests/tap-skip-whole.test: Adapt.
* tests/tap-skip-whole-lastline.test: Likewise.
* tests/tap-global-result.test: Adapt and extend.
* tests/tap-skip-plan-errors.test: Likewise, and fix an obsolete
small part of a comment.
* tests/tap-skip-whole-bailout.test: New test.
* tests/tap-skip-whole-unplanned.test: Likewise.
* tests/tap-skip-whole-continue.test: Likewise.
* tests/Makefile.am (tap_with_common_setup_tests): Update.
12 files changed:
ChangeLog
lib/tap-driver
tests/Makefile.am
tests/Makefile.in
tests/tap-global-result.test
tests/tap-plan-corner.test
tests/tap-plan-errors.test
tests/tap-skip-whole-bailout.test [new file with mode: 0755]
tests/tap-skip-whole-continue.test [new file with mode: 0755]
tests/tap-skip-whole-lastline.test
tests/tap-skip-whole-unplanned.test [new file with mode: 0755]
tests/tap-skip-whole.test