From: Stefano Lattarini Date: Fri, 12 Aug 2011 12:42:21 +0000 (+0200) Subject: coverage: TAP diagnostics after "Bail out!" aren't reported X-Git-Tag: ng-0.5a~89^2~101^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52a130494d747f224f4d6cc7a487942179857135;p=thirdparty%2Fautomake.git coverage: TAP diagnostics after "Bail out!" aren't reported This is compatible with the behaviour of the `prove' utility. * tests/tap-bailout-suppress-later-diagnostic.test: New test. * tests/Makefile.am (tap_with_common_setup_tests): Update. --- diff --git a/ChangeLog b/ChangeLog index 42b23f591..42985e0e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-08-12 Stefano Lattarini + + coverage: TAP diagnostics after "Bail out!" aren't reported + This is compatible with the behaviour of the `prove' utility. + * tests/tap-bailout-suppress-later-diagnostic.test: New test. + * tests/Makefile.am (tap_with_common_setup_tests): Update. + 2011-08-12 Stefano Lattarini coverage: TAP errors after a "Bail out!" directive aren't reported diff --git a/tests/Makefile.am b/tests/Makefile.am index 376802f80..b9b6bf76f 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -1145,6 +1145,7 @@ tap_with_common_setup_tests = \ tap-autonumber.test \ tap-bailout.test \ tap-bailout-suppress-badexit.test \ +tap-bailout-suppress-later-diagnostic.test \ tap-bailout-suppress-later-errors.test \ tap-color.test \ tap-deps.test \ diff --git a/tests/Makefile.in b/tests/Makefile.in index b205f5691..a298a5711 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -1385,6 +1385,7 @@ tap_with_common_setup_tests = \ tap-autonumber.test \ tap-bailout.test \ tap-bailout-suppress-badexit.test \ +tap-bailout-suppress-later-diagnostic.test \ tap-bailout-suppress-later-errors.test \ tap-color.test \ tap-deps.test \ diff --git a/tests/tap-bailout-suppress-later-diagnostic.test b/tests/tap-bailout-suppress-later-diagnostic.test new file mode 100755 index 000000000..679343f95 --- /dev/null +++ b/tests/tap-bailout-suppress-later-diagnostic.test @@ -0,0 +1,45 @@ +#! /bin/sh +# Copyright (C) 2011 Free Software Foundation, Inc. +# +# This program is free software; you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation; either version 2, or (at your option) +# any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see . + +# TAP support: +# - A "Bail out!" directive causes the driver to ignore any TAP +# diagnostic message in the rest of the following TAP stream. + +parallel_tests=yes +. ./defs || Exit 1 + +. "$testsrcdir"/tap-setup.sh || fatal_ "sourcing tap-setup.sh" + +echo AM_TEST_LOG_DRIVER_FLAGS = --comments >> Makefile + +cat > all.test <stdout && { cat stdout; Exit 1; } +cat stdout + +count_test_results total=2 pass=1 fail=0 xpass=0 xfail=0 skip=0 error=1 +grep '# all.test: sanity check' stdout +grep 'not seen' stdout && Exit 1 + +: