range-set: satisfy non-empty ranges invariant
[gitweb.git] / t / t4211-line-log.sh
index d98efb3c4e96570566a08e7b373d892d16ffa5ad..e7a6e499654d436e898f03f68316bc50fb76cc42 100755 (executable)
@@ -67,7 +67,8 @@ 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)' '
+test_expect_success '-L {empty-range} (any -L)' '
+       n=$(expr $(cat b.c | wc -l) + 1) &&
        n=$(expr $(wc -l <b.c) + 1) &&
        git log -L1,1:b.c -L$n:b.c
 '