summaryrefslogtreecommitdiff
path: root/t/t4013/diff.diff-tree_--pretty=oneline_-p_initial
diff options
context:
space:
mode:
authorLibravatar Ævar Arnfjörð Bjarmason <avarab@gmail.com>2010-08-11 12:04:38 +0000
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-08-18 12:42:04 -0700
commitce60653e59f89b409b80a1a381275914fddce07f (patch)
treee4b87ac4e721e095ecc3323b415cb38f3d17b321 /t/t4013/diff.diff-tree_--pretty=oneline_-p_initial
parenttests: A SANITY test prereq for testing if we're root (diff)
downloadtgif-ce60653e59f89b409b80a1a381275914fddce07f.tar.xz
test-lib: Multi-prereq support only checked the last prereq
The support for multiple test prerequisites added by me in "test-lib: Add support for multiple test prerequisites" was broken. The for iterated over each prerequisite and returned true/false within a case statement, but since it missed a return statement only the last prerequisite in the list of prerequisites was ever considered, the rest were ignored. Fix that by changing the test_have_prereq code to something less clever that keeps a count of the total prereqs and the ones we have and compares the count at the end. This comes with the added advantage that it's easy to list the missing prerequisites in the test output, implement that while I'm at it. Signed-off-by: Ævar Arnfjörð Bjarmason <avarab@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4013/diff.diff-tree_--pretty=oneline_-p_initial')
0 files changed, 0 insertions, 0 deletions