about summary refs log tree commit homepage
path: root/t/t0600-rack-fiber_pool.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/t0600-rack-fiber_pool.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/t0600-rack-fiber_pool.sh')
-rwxr-xr-xt/t0600-rack-fiber_pool.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t0600-rack-fiber_pool.sh b/t/t0600-rack-fiber_pool.sh
index 01f28b5..538eda4 100755
--- a/t/t0600-rack-fiber_pool.sh
+++ b/t/t0600-rack-fiber_pool.sh
@@ -43,7 +43,7 @@ t_begin "no errors from curl" && {
 t_begin "no errors in stderr" && check_stderr
 
 t_begin "ensure we hit 3 separate fibers" && {
-        test x3 = x"$(sort < $curl_out | uniq | wc -l)"
+        test x3 = x"$(sort < $curl_out | uniq | count_lines)"
 }
 
 t_done