git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Naewe <stefan.naewe@gmail.com>
To: git@vger.kernel.org
Cc: gitster@pobox.com, Stefan Naewe <stefan.naewe@gmail.com>
Subject: [PATCH] t3200: add test case for 'branch -m'
Date: Wed,  2 Nov 2011 16:07:05 +0100	[thread overview]
Message-ID: <1320246425-2141-1-git-send-email-stefan.naewe@gmail.com> (raw)
In-Reply-To: <4EB153B4.6070404@atlas-elektronik.com>

Signed-off-by: Stefan Naewe <stefan.naewe@gmail.com>
---
 t/t3200-branch.sh |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/t/t3200-branch.sh b/t/t3200-branch.sh
index 2f5eada..3ce31b5 100755
--- a/t/t3200-branch.sh
+++ b/t/t3200-branch.sh
@@ -75,6 +75,11 @@ test_expect_success \
         git branch l'
 
 test_expect_success \
+    'git branch -m dumps usage' \
+       'test_expect_code 129 git branch -m 2>err &&
+        grep "[Uu]sage: git branch" err'
+
+test_expect_success \
     'git branch -m m m/m should work' \
        'git branch -l m &&
         git branch -m m m/m &&
-- 
1.7.8.rc0.1.gb345ae

  parent reply	other threads:[~2011-11-02 15:17 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-02 14:29 'git -m' dumps core Stefan Näwe
2011-11-02 15:01 ` [PATCH] branch -m: handle no arg properly Tay Ray Chuan
2011-11-02 15:09   ` Stefan Näwe
2011-11-02 16:17     ` Tay Ray Chuan
2011-11-02 15:07 ` Stefan Naewe [this message]
2011-11-02 19:43   ` [PATCH] t3200: add test case for 'branch -m' Junio C Hamano

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1320246425-2141-1-git-send-email-stefan.naewe@gmail.com \
    --to=stefan.naewe@gmail.com \
    --cc=git@vger.kernel.org \
    --cc=gitster@pobox.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).