summaryrefslogtreecommitdiff
path: root/t/t2008-checkout-subdir.sh
AgeCommit message (Collapse)AuthorFilesLines
2008-03-02tests: introduce test_must_failLibravatar Junio C Hamano1-8/+8
When we expect a git command to notice and signal errors, we carelessly wrote in our tests: test_expect_success 'reject bogus request' ' do something && do something else && ! git command ' but a non-zero exit could come from the "git command" segfaulting. A new helper function "tset_must_fail" is introduced and it is meant to be used to make sure the command gracefully fails (iow, dying and exiting with non zero status is counted as a failure to "gracefully fail"). The above example should be written as: test_expect_success 'reject bogus request' ' do something && do something else && test_must_fail git command ' Signed-off-by: Junio C Hamano <gitster@pobox.com>
2007-11-11git-checkout: Test for relative path use.Libravatar David Symonds1-0/+82
Signed-off-by: David Symonds <dsymonds@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>