git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] t0020-crlf: check the right file
@ 2018-08-22 12:44 SZEDER Gábor
  2018-08-22 12:44 ` [PATCH 2/2] t4051-diff-function-context: read " SZEDER Gábor
  2018-08-22 16:11 ` [PATCH 1/2] t0020-crlf: check " Junio C Hamano
  0 siblings, 2 replies; 4+ messages in thread
From: SZEDER Gábor @ 2018-08-22 12:44 UTC (permalink / raw)
  To: Junio C Hamano; +Cc: git, SZEDER Gábor

In the test 'checkout with autocrlf=input' in 't0020-crlf.sh', one of
the 'has_cr' checks looks at the non-existing file 'two' instead of
'dir/two'.  The test still succeeds, without actually checking what it
was supposed to, because this check is expected to fail anyway.

As a minimal fix, fix the name of the file to be checked.

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
---
 t/t0020-crlf.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/t/t0020-crlf.sh b/t/t0020-crlf.sh
index 5f056982a5..854da0ae16 100755
--- a/t/t0020-crlf.sh
+++ b/t/t0020-crlf.sh
@@ -160,7 +160,7 @@ test_expect_success 'checkout with autocrlf=input' '
 	git config core.autocrlf input &&
 	git read-tree --reset -u HEAD &&
 	test_must_fail has_cr one &&
-	test_must_fail has_cr two &&
+	test_must_fail has_cr dir/two &&
 	git update-index -- one dir/two &&
 	test "$one" = $(git hash-object --stdin <one) &&
 	test "$two" = $(git hash-object --stdin <dir/two) &&
-- 
2.19.0.rc0.136.gd2dd172e64


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-08-22 16:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-08-22 12:44 [PATCH 1/2] t0020-crlf: check the right file SZEDER Gábor
2018-08-22 12:44 ` [PATCH 2/2] t4051-diff-function-context: read " SZEDER Gábor
2018-08-22 16:11 ` [PATCH 1/2] t0020-crlf: check " Junio C Hamano
2018-08-22 16:30   ` Jeff King

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).