diff options
author | Jonathan Nieder <jrnieder@gmail.com> | 2012-04-13 23:48:13 -0500 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2012-04-14 16:17:12 -0700 |
commit | 948065a4837f006c5c84ee1288cf15f1a56d93f2 (patch) | |
tree | b383ca4a6fe80196fa36421ce248b6c3b84dffd0 /Documentation/git-am.txt | |
parent | test: use test_i18ncmp for "Patch format detection failed" message (diff) | |
download | tgif-948065a4837f006c5c84ee1288cf15f1a56d93f2.tar.xz |
test: am of empty patch should not succeed
The "git am empty" test uses the construct
git am empty-file && false || :
which unconditionally returns true. Use test_must_fail instead, which
also has the benefit of noticing if "git am" has segfaulted.
While at it, tighten the test to check that the diagnostic appears on
stderr and not stdout.
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'Documentation/git-am.txt')
0 files changed, 0 insertions, 0 deletions