t4211: demonstrate crash when first -L encountered is empty range

Signed-off-by: Eric Sunshine <sunshine@sunshineco.com> Acked-by: Thomas Rast <trast@inf.ethz.ch> Helped-by: SZEDER Gábor <szeder@ira.uka.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>

Eric Sunshine committed Jul 23, 2013 at 10:28 UTC 99780b0a4ab22c903516601bb3634e6477d7f1c1
1 file changed +5
t/t4211-line-log.sh
+5
@@ -72,4 +72,9 @@ test_expect_failure '-L {empty-range} (any -L)' '
72 git log -L1,1:b.c -L$n:b.c
73 '
74
75 +test_expect_failure '-L {empty-range} (first -L)' '
76 + n=$(expr $(wc -l <b.c) + 1) &&
77 + git log -L$n:b.c
78 +'
79 +
80 test_done