test: am of empty patch should not succeed
commit948065a4837f006c5c84ee1288cf15f1a56d93f2
authorJonathan Nieder <jrnieder@gmail.com>
Sat, 14 Apr 2012 04:48:13 +0000 (13 23:48 -0500)
committerJunio C Hamano <gitster@pobox.com>
Sat, 14 Apr 2012 23:17:12 +0000 (14 16:17 -0700)
treeb383ca4a6fe80196fa36421ce248b6c3b84dffd0
parentb1f5b7839c3bce2accda8b70e03ccc62ad778dd9
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>
t/t4150-am.sh