summaryrefslogtreecommitdiff
path: root/t/README
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-11-24 17:47:07 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-11-24 17:47:07 (GMT)
commit53de742470bdf160a8412d7a2e9c30545db63fac (patch)
tree86c03526349868c80b53fd99f914bae7cc63c8fe /t/README
parent54cc5d29a0590c47c6f32d15c867c0199fdd672a (diff)
downloadgit-53de742470bdf160a8412d7a2e9c30545db63fac.zip
git-53de742470bdf160a8412d7a2e9c30545db63fac.tar.gz
git-53de742470bdf160a8412d7a2e9c30545db63fac.tar.bz2
t/README: justify why "! grep foo" is sufficient
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>
Diffstat (limited to 't/README')
-rw-r--r--t/README3
1 files changed, 2 insertions, 1 deletions
diff --git a/t/README b/t/README
index caeeb9d..1d51d0e 100644
--- 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