about summary refs log tree commit homepage
path: root/t/t0000-http-basic.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 12:39:09 +0000
commit9cd8554749a9f120b010c93933d09d2dd27b1280 (patch)
treecc085e5218ecc342a35420d2bb137dcb42403506 /t/t0000-http-basic.sh
parent2a2163594ea2b515e98fbe9f909bcf90e4c35fe8 (diff)
downloadunicorn-9cd8554749a9f120b010c93933d09d2dd27b1280.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/t0000-http-basic.sh')
-rwxr-xr-xt/t0000-http-basic.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/t/t0000-http-basic.sh b/t/t0000-http-basic.sh
index 01ead95..8ab58ac 100755
--- a/t/t0000-http-basic.sh
+++ b/t/t0000-http-basic.sh
@@ -26,7 +26,7 @@ t_begin "HTTP/0.9 request should not return headers" && {
 }
 
 t_begin "env.inspect should've put everything on one line" && {
-        test 1 -eq $(wc -l < $tmp)
+        test 1 -eq $(count_lines < $tmp)
 }
 
 t_begin "no headers in output" && {