From: Junio C Hamano Date: Mon, 08 Jun 2009 07:00:44 GMT Subject: Re: [PATCH v2 4/6] add a test for git-send-email for non-threaded mails Message-ID: <7vd49f8b1f.fsf@alter.siamese.dyndns.org> In-Reply-To: <200906080842.00357.markus.heidelberg@web.de> Markus Heidelberg writes: > Signed-off-by: Markus Heidelberg > --- > > Differences to v1: > * dump stdout into a file and grep this > * use "test_must_fail grep" instead of "!git send-email" > I'm not sure about this. When should test_must_fail be used and when > is !command OK? Thanks. Generally, we protect "git" (i.e. what we write ourselves) with test_must_fail so that we can catch stupid segfaulting crash we introduce ourselves (unlike "! git foo", "test_must_fail git foo" says "oh, no, it did not correctly fail" if git segfaults). We do not expect "grep" to segfault (iow we are not testing "grep"), so it is customary to say "! grep".