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/t9101-thread-timeout-threshold.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/t9101-thread-timeout-threshold.sh')
-rwxr-xr-x | t/t9101-thread-timeout-threshold.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9101-thread-timeout-threshold.sh b/t/t9101-thread-timeout-threshold.sh index 07ac3b2..c1f5afe 100755 --- a/t/t9101-thread-timeout-threshold.sh +++ b/t/t9101-thread-timeout-threshold.sh @@ -23,7 +23,7 @@ t_begin "8 sleepy requests do not time out" && { 2>> $curl_err >> $curl_out & done wait - test 8 -eq "$(wc -l < $curl_out)" + test 8 -eq "$(count_lines < $curl_out)" test xHI = x"$(sort < $curl_out | uniq)" } |