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/t0700-app-deferred.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/t0700-app-deferred.sh')
-rwxr-xr-x | t/t0700-app-deferred.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/t/t0700-app-deferred.sh b/t/t0700-app-deferred.sh index 8d4b4e2..90614b2 100755 --- a/t/t0700-app-deferred.sh +++ b/t/t0700-app-deferred.sh @@ -25,8 +25,8 @@ t_begin "synchronous requests run in the same thread" && { curl --no-buffer -sSf http://$listen/ >> $sync_out 2>> $sync_err & wait test ! -s $sync_err - test 3 -eq "$(wc -l < $sync_out)" - test 1 -eq "$(uniq < $sync_out | wc -l)" + test 3 -eq "$(count_lines < $sync_out)" + test 1 -eq "$(uniq < $sync_out | count_lines)" } t_begin "deferred requests run in a different thread" && { |