Skip to content

Commit

Permalink
Merge branch 'maint-1.6.5' into maint
Browse files Browse the repository at this point in the history
* maint-1.6.5:
  t8003: check exit code of command and error message separately
  • Loading branch information
Junio C Hamano committed Feb 10, 2010
2 parents 57ffc0e + 33f0ea4 commit 216d2e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions t/t8003-blame.sh
Original file line number Diff line number Diff line change
Expand Up @@ -158,11 +158,13 @@ EOF
'

test_expect_success 'blame -L with invalid start' '
test_must_fail git blame -L5 tres 2>&1 | grep "has only 2 lines"
test_must_fail git blame -L5 tres 2>errors &&
grep "has only 2 lines" errors
'

test_expect_success 'blame -L with invalid end' '
git blame -L1,5 tres 2>&1 | grep "has only 2 lines"
test_must_fail git blame -L1,5 tres 2>errors &&
grep "has only 2 lines" errors
'

test_done

0 comments on commit 216d2e0

Please sign in to comment.