diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-02-04 12:29:00 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-02-04 12:31:05 +0000 |
commit | 2a2163594ea2b515e98fbe9f909bcf90e4c35fe8 (patch) | |
tree | cdfb5fd65bd1850dba45362a81350da6ee0ae7d0 /t/t0006-reopen-logs.sh | |
parent | 85223902e8229bd460ce0b4ad126f42b1db42a46 (diff) | |
download | unicorn-2a2163594ea2b515e98fbe9f909bcf90e4c35fe8.tar.gz |
On FreeBSD 9.0, "wc -c" emits leading whitespace, so filter it through tr -d '[:space:]' to eliminate it. This is commit 8a6117a22a7d01eeb5adc63d3152acf435cd3176 in rainbows.git
Diffstat (limited to 't/t0006-reopen-logs.sh')
-rwxr-xr-x | t/t0006-reopen-logs.sh | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/t/t0006-reopen-logs.sh b/t/t0006-reopen-logs.sh index 430959c..a6e7a17 100755 --- a/t/t0006-reopen-logs.sh +++ b/t/t0006-reopen-logs.sh @@ -62,11 +62,11 @@ t_begin "rotated stderr is clean" && { } t_begin "server is now writing logs to new stderr" && { - before_rot=$(wc -c < $r_rot) - before_err=$(wc -c < $r_err) + before_rot=$(count_bytes < $r_rot) + before_err=$(count_bytes < $r_err) test xtrue = x$(curl -sSf http://$listen/ 2> $curl_err) - after_rot=$(wc -c < $r_rot) - after_err=$(wc -c < $r_err) + after_rot=$(count_bytes < $r_rot) + after_err=$(count_bytes < $r_err) test $after_rot -eq $before_rot test $after_err -gt $before_err } |