Skip to content

Commit

Permalink
t/README: Document test_expect_code
Browse files Browse the repository at this point in the history
test_expect_code (which was introduced in d3bfdb7) never had any
documentation.

Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Ævar Arnfjörð Bjarmason authored and Junio C Hamano committed Jul 5, 2010
1 parent 2fac6a4 commit 97d9fd9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions t/README
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,13 @@ library for your script to use.
Like test_expect_success this function can optionally use a three
argument invocation with a prerequisite as the first argument.

- test_expect_code [<prereq>] <code> <message> <script>

Analogous to test_expect_success, but pass the test if it exits
with a given exit <code>

test_expect_code 1 'Merge with d/f conflicts' 'git merge "merge msg" B master'

- test_debug <script>

This takes a single argument, <script>, and evaluates it only
Expand Down

0 comments on commit 97d9fd9

Please sign in to comment.