From: Michael Haggerty Date: Thu, 4 Aug 2011 04:36:16 +0000 (+0200) Subject: git-check-attr: Add tests of command-line parsing X-Git-Tag: v1.7.7-rc0~23^2~23 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=09d7dd7ad62fef60fc223fa74eb04c8dc783c2f6;p=git.git git-check-attr: Add tests of command-line parsing Signed-off-by: Michael Haggerty Signed-off-by: Junio C Hamano --- diff --git a/t/t0003-attributes.sh b/t/t0003-attributes.sh index dae76b39b..f1debeb7a 100755 --- a/t/t0003-attributes.sh +++ b/t/t0003-attributes.sh @@ -44,6 +44,13 @@ test_expect_success 'setup' ' test_expect_success 'command line checks' ' + test_must_fail git check-attr && + test_must_fail git check-attr -- && + test_must_fail git check-attr -- f && + echo "f" | test_must_fail git check-attr --stdin && + echo "f" | test_must_fail git check-attr --stdin -- f && + echo "f" | test_must_fail git check-attr --stdin test -- f && + echo "f" | test_must_fail git check-attr --stdin test f && test_must_fail git check-attr "" -- f '