chiark / gitweb /
New policy: Only use test_expect_failure for broken tests
authorKarl Hasselström <kha@treskal.com>
Sun, 23 Sep 2007 12:18:50 +0000 (14:18 +0200)
committerKarl Hasselström <kha@treskal.com>
Sun, 23 Sep 2007 22:54:07 +0000 (00:54 +0200)
New policy for tests:

  * For subtests whose commands fail when the test succeeds, use
    test_expect_success and shell negation (!). test_expect_failure is
    to be used only for subtests that are known to be broken.

  * Patches that introduce a subtest failure must change that subtest
    to use test_expect_failure.

The reason for this change is to ensure that the test suite passes at
all times, even in the middle of disruptive rewrites spread over
several commits.

Signed-off-by: Karl Hasselström <kha@treskal.com>

No differences found