t5802: add test for connect helper
[gitweb.git] / t / t4211-line-log.sh
index e7a6e499654d436e898f03f68316bc50fb76cc42..7665d6785c1a91ed0171e8cac61174ebee9b9a37 100755 (executable)
@@ -68,12 +68,11 @@ test_bad_opts "-L :foo:b.c" "no match"
 # thus to demonstrate this particular bug, the empty -L range must follow a
 # non-empty -L range.
 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
 '
 
-test_expect_failure '-L {empty-range} (first -L)' '
+test_expect_success '-L {empty-range} (first -L)' '
        n=$(expr $(wc -l <b.c) + 1) &&
        git log -L$n:b.c
 '