diff options
author | Thomas Rast <trast@student.ethz.ch> | 2009-02-19 12:13:36 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2009-02-20 00:02:40 -0800 |
commit | 85569d7498f3933d96a7604512f8832c73127067 (patch) | |
tree | 9ba97380a9beae85248602017e9b228f2767ba64 | |
parent | Support coverage testing with GCC/gcov (diff) | |
download | tgif-85569d7498f3933d96a7604512f8832c73127067.tar.xz |
Test that diff can read from stdin
Signed-off-by: Thomas Rast <trast@student.ethz.ch>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rwxr-xr-x | t/t4002-diff-basic.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/t/t4002-diff-basic.sh b/t/t4002-diff-basic.sh index cc3681f161..18695ce821 100755 --- a/t/t4002-diff-basic.sh +++ b/t/t4002-diff-basic.sh @@ -258,4 +258,12 @@ test_expect_success \ git diff-tree -r -R $tree_A $tree_B >.test-b && cmp -s .test-a .test-b' +test_expect_success \ + 'diff can read from stdin' \ + 'test_must_fail git diff --no-index -- MN - < NN | + grep -v "^index" | sed "s#/-#/NN#" >.test-a && + test_must_fail git diff --no-index -- MN NN | + grep -v "^index" >.test-b && + test_cmp .test-a .test-b' + test_done |