diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-02-04 12:39:09 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-02-04 13:38:13 +0000 |
commit | e6faf9e26bcb172026a4984ecadbaa8b6789bcb7 (patch) | |
tree | 37d8b44818b1f62b7c285124073c85fa50e202e5 /t/t0106-rack-input-keepalive.sh | |
parent | f4e3bac180ff01256832f98655636f79b52f9d5b (diff) | |
download | rainbows-e6faf9e26bcb172026a4984ecadbaa8b6789bcb7.tar.gz |
On FreeBSD 9.0, "wc -l" emits leading whitespace, so filter it through tr -d '[:space:]' to eliminate it.
Diffstat (limited to 't/t0106-rack-input-keepalive.sh')
-rwxr-xr-x | t/t0106-rack-input-keepalive.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t0106-rack-input-keepalive.sh b/t/t0106-rack-input-keepalive.sh index 4bc65a1..3862e16 100755 --- a/t/t0106-rack-input-keepalive.sh +++ b/t/t0106-rack-input-keepalive.sh @@ -34,7 +34,7 @@ t_begin "send big pipelined chunked requests" && { t_begin "check responses" && { dbgcat tmp - test 4 -eq $(grep $random_blob_sha1 $tmp | wc -l) + test 4 -eq $(grep $random_blob_sha1 $tmp | count_lines) } t_begin "send big pipelined identity requests" && { @@ -58,7 +58,7 @@ t_begin "send big pipelined identity requests" && { t_begin "check responses" && { dbgcat tmp - test 3 -eq $(grep $random_blob_sha1 $tmp | wc -l) + test 3 -eq $(grep $random_blob_sha1 $tmp | count_lines) } t_begin "send pipelined identity requests" && { @@ -83,7 +83,7 @@ t_begin "send pipelined identity requests" && { t_begin "check responses" && { dbgcat tmp - test 3 -eq $(grep $body_sha1 $tmp | wc -l) + test 3 -eq $(grep $body_sha1 $tmp | count_lines) } t_begin "send pipelined chunked requests" && { @@ -111,7 +111,7 @@ t_begin "send pipelined chunked requests" && { t_begin "check responses" && { dbgcat tmp - test 3 -eq $(grep $body_sha1 $tmp | wc -l) + test 3 -eq $(grep $body_sha1 $tmp | count_lines) } t_begin "kill server" && kill $rainbows_pid |