From: Eric Sunshine Date: Tue, 23 Jul 2013 14:28:05 +0000 (-0400) Subject: t4211: demonstrate empty -L range crash X-Git-Tag: v1.8.4-rc0~13^2~1^2~3 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/58960978?ds=sidebyside t4211: demonstrate empty -L range crash Signed-off-by: Eric Sunshine Acked-by: Thomas Rast Helped-by: SZEDER Gábor Signed-off-by: Junio C Hamano --- diff --git a/t/t4211-line-log.sh b/t/t4211-line-log.sh index 7776f93e3d..9042178124 100755 --- a/t/t4211-line-log.sh +++ b/t/t4211-line-log.sh @@ -64,4 +64,12 @@ test_bad_opts "-L 1,1000:b.c" "has only.*lines" test_bad_opts "-L :b.c" "argument.*not of the form" test_bad_opts "-L :foo:b.c" "no match" +# There is a separate bug when an empty -L range is the first -L encountered, +# thus to demonstrate this particular bug, the empty -L range must follow a +# non-empty -L range. +test_expect_failure '-L {empty-range} (any -L)' ' + n=$(expr $(wc -l