aboutsummaryrefslogtreecommitdiff
path: root/test/README
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2017-02-26 15:43:01 +0200
committerDavid Bremner <david@tethera.net>2017-03-09 09:03:40 -0400
commit0497d695ca796c4d19ad5ec08788bbb1f400c58c (patch)
treea398c1a25282da030dc86bf5ac2b64b583b788e3 /test/README
parentd0cd253b37646d9364d046e1d3edb022a58c105a (diff)
test: require test_begin_subtest before test_expect_code
Unify the subtests by requiring test_begin_subtest before test_expect_code. (Similar change for test_expect_success has already been done.) This increases clarity in the test scripts by having a separate line for the start of the subtest with the heading, and makes it possible to simplify the test infrastructure by making all subtests similar.
Diffstat (limited to 'test/README')
-rw-r--r--test/README5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/README b/test/README
index 7acdb4b8..dcd05237 100644
--- a/test/README
+++ b/test/README
@@ -200,6 +200,11 @@ library for your script to use.
<script>. If it yields success, test is considered
successful.
+ test_expect_code <code> <script>
+
+ This takes two strings as parameter, and evaluates the <script>.
+ If it yields <code> exit status, test is considered successful.
+
test_subtest_known_broken
Mark the current test as broken. Such tests are expected to fail.