diff options
author | Junio C Hamano <gitster@pobox.com> | 2023-08-19 02:59:31 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2023-08-19 03:01:12 +0300 |
commit | 5626558e639cb34a8e32f52260fa7d7393b1982c (patch) | |
tree | 60731c36d74a0739600458be5be3bbb5c04854b0 /t/t4040-whitespace-status.sh | |
parent | e8efd863699c6927953ebff6cb317c5632b7324d (diff) |
t4040: remove test that succeeded for a wrong reason
"diff-tree -b --exit-code" without "--patch" exits with 0 status,
not because it finds that the two input files are equivalent while
ignoring whitespaces, but because the implied "--raw" mode always
exits with 0 when whitespace tweaking options like "-b" and "-w"
are given, which is a long-standing bug.
We are about to fix it so that "--raw" and friends report the
differences with the exit status (even though they ignore the
whitespace tweaking options when producing their output), which
will make this test, which succeeded for a wrong reason, start
failing. Remove it.
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 't/t4040-whitespace-status.sh')
-rwxr-xr-x | t/t4040-whitespace-status.sh | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/t/t4040-whitespace-status.sh b/t/t4040-whitespace-status.sh index e70e020ae9..eec3d73dc2 100755 --- a/t/t4040-whitespace-status.sh +++ b/t/t4040-whitespace-status.sh @@ -28,8 +28,7 @@ test_expect_success 'diff-tree --exit-code' ' test_expect_success 'diff-tree -b --exit-code' ' git diff -b --exit-code HEAD^ HEAD && - git diff-tree -b -p --exit-code HEAD^ HEAD && - git diff-tree -b --exit-code HEAD^ HEAD + git diff-tree -b -p --exit-code HEAD^ HEAD ' test_expect_success 'diff-index --cached --exit-code' ' |