X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=t%2Ftest-lib-functions.sh;h=52510094add59b508e1581ffebfa555e7249561c;hb=0a3bc7d298408951630bbc6ac8e773659f900943;hp=8828ff78f184a451fb43709771cc39bf17186cfb;hpb=079424a2cffa9c5a96c958ec50bb5a865a9305cf;p=~andy%2Fgit diff --git a/t/test-lib-functions.sh b/t/test-lib-functions.sh index 8828ff78f..a7e9aacbb 100644 --- a/t/test-lib-functions.sh +++ b/t/test-lib-functions.sh @@ -343,6 +343,7 @@ test_declared_prereq () { } test_expect_failure () { + test_start_ test "$#" = 3 && { test_prereq=$1; shift; } || test_prereq= test "$#" = 2 || error "bug in the test script: not 2 or 3 parameters to test-expect-failure" @@ -357,10 +358,11 @@ test_expect_failure () { test_known_broken_failure_ "$1" fi fi - echo >&3 "" + test_finish_ } test_expect_success () { + test_start_ test "$#" = 3 && { test_prereq=$1; shift; } || test_prereq= test "$#" = 2 || error "bug in the test script: not 2 or 3 parameters to test-expect-success" @@ -375,7 +377,7 @@ test_expect_success () { test_failure_ "$@" fi fi - echo >&3 "" + test_finish_ } # test_external runs external test scripts that provide continuous