Ævar Arnfjörð Bjarmason  committed 97d9fd9

t/README: Document test_expect_code

test_expect_code (which was introduced in d3bfdb75) never had any

Signed-off-by: Ævar Arnfjörð Bjarmason <>
Signed-off-by: Junio C Hamano <>

  • Participants
  • Parent commits 2fac6a4

Comments (0)

Files changed (1)

    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