]> git.notmuchmail.org Git - notmuch/commit
test: improve known broken tests support
authorDmitry Kurochkin <dmitry.kurochkin@gmail.com>
Mon, 4 Jul 2011 04:07:20 +0000 (08:07 +0400)
committerDavid Bremner <bremner@debian.org>
Sat, 10 Sep 2011 13:13:27 +0000 (10:13 -0300)
commit4cc67276885990c38bc2bcc79eedbb0851e2bc8a
treeca36d0395943cc95c7b2238103e6409324ee08c5
parent0db3a4d5be93710837962b8260420cfc5a8b968e
test: improve known broken tests support

There is existing support for broken tests.  But it is not convenient
to use.  The primary issue is that we have to maintain a set of
test_expect_*_failure functions which are equivalent to the normal
test_expect_* counterparts except for what functions are called for
result reporting.  The patch adds test_subtest_known_broken function
which marks a subset as broken, making the normal test_expect_*
functions behave as test_expect_*_failure.  All test_expect_*_failure
functions are removed.  Test_known_broken_failure_ is changed to
format details the same way as test_failure_ does.

Another benefit of this change is that the diff when a broken test is
fixed would be small and nice.

Documentation is updated accordingly.
test/README
test/test-lib.sh