about summary refs log tree commit homepage
path: root/t/t9100-thread-timeout.sh
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2013-02-04 12:39:09 +0000
committerEric Wong <normalperson@yhbt.net>2013-02-04 13:38:13 +0000
commite6faf9e26bcb172026a4984ecadbaa8b6789bcb7 (patch)
tree37d8b44818b1f62b7c285124073c85fa50e202e5 /t/t9100-thread-timeout.sh
parentf4e3bac180ff01256832f98655636f79b52f9d5b (diff)
downloadrainbows-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/t9100-thread-timeout.sh')
-rwxr-xr-xt/t9100-thread-timeout.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t9100-thread-timeout.sh b/t/t9100-thread-timeout.sh
index bf0c252..d26e314 100755
--- a/t/t9100-thread-timeout.sh
+++ b/t/t9100-thread-timeout.sh
@@ -37,7 +37,7 @@ t_begin "short requests do not timeout while making a long one" && {
         test x"HI" = x"$(curl -sSf http://$listen/)"
         wait
         test -f $ok
-        test 20 -eq $(grep '^HI$' $ok | wc -l)
+        test 20 -eq $(grep '^HI$' $ok | count_lines)
         test x = x"$(grep -v '^HI$' $ok)"
         grep 408 $curl_err
 }