From 8a6117a22a7d01eeb5adc63d3152acf435cd3176 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Thu, 24 Jan 2013 23:33:54 +0000 Subject: tests: "wc -c" portability for *BSDs On FreeBSD 9.0, "wc -c" emits leading whitespace, so filter it through tr -d '[:space:]' to eliminate it. --- t/byte-range-common.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/byte-range-common.sh') diff --git a/t/byte-range-common.sh b/t/byte-range-common.sh index ba05864..2c12a8b 100644 --- a/t/byte-range-common.sh +++ b/t/byte-range-common.sh @@ -1,5 +1,5 @@ t_begin "byte-range setup vars" && { - random_blob_size=$(wc -c < random_blob) + random_blob_size=$(count_bytes < random_blob) rb_1=$(( $random_blob_size - 1 )) range_head=-r-365 range_tail=-r155- -- cgit v1.2.3-24-ge0c7