From: SZEDER Gábor Date: Wed, 22 Aug 2018 12:44:37 +0000 (+0200) Subject: t4051-diff-function-context: read the right file X-Git-Tag: v2.19.0-rc1~12^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c8b35b95e1990df7d325e08cf35e59f8eb77cf48;p=thirdparty%2Fgit.git t4051-diff-function-context: read the right file The test ' context does not include preceding empty lines' in the block of tests 'change with long common tail and no context' in 't4051-diff-function-context.sh' tries to read the file 'long_common_tail.diff.diff', but that file doesn't exist as its name contains one more '.diff' suffixes than necessary. Despite this error the test still succeeded without checking what it's supposed to, because this erroneous read is done on the line: test "$(first_context_line Signed-off-by: Junio C Hamano --- diff --git a/t/t4051-diff-function-context.sh b/t/t4051-diff-function-context.sh index ca017255ba..3df24f2ef2 100755 --- a/t/t4051-diff-function-context.sh +++ b/t/t4051-diff-function-context.sh @@ -154,7 +154,7 @@ test_expect_success ' context does not include other functions' ' ' test_expect_success ' context does not include preceding empty lines' ' - test "$(first_context_line