]> granicus.if.org Git - git/commitdiff
t/README: justify why "! grep foo" is sufficient
authorJunio C Hamano <gitster@pobox.com>
Mon, 24 Nov 2014 17:47:07 +0000 (09:47 -0800)
committerJunio C Hamano <gitster@pobox.com>
Mon, 24 Nov 2014 17:47:07 +0000 (09:47 -0800)
We require use of test_must_fail to check expected non-zero exit by
Git itself, but discourage test_must_fail to be used for checking
exit status of non Git commands that are supplied by the system.
The current text explains the reason for the former but not the
latter.

Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/README

index caeeb9dedc46940132dceb65f2ea976709945e2d..1d51d0e0be750755b99fb11c88308604f851c783 100644 (file)
--- a/t/README
+++ b/t/README
@@ -335,7 +335,8 @@ Don't:
    dies in an unexpected way (e.g. segfault).
 
    On the other hand, don't use test_must_fail for running regular
-   platform commands; just use '! cmd'.
+   platform commands; just use '! cmd'.  We are not in the business
+   of verifying that the world given to us sanely works.
 
  - use perl without spelling it as "$PERL_PATH". This is to help our
    friends on Windows where the platform Perl often adds CR before