>From e92cccad6244fc2590efba863c85a596556cc289 Mon Sep 17 00:00:00 2001 From: Assaf Gordon Date: Thu, 13 Dec 2018 13:05:22 -0700 Subject: [PATCH] tests: fix obinary test error due to 'wc' spaces On BSD systems "wc -c" prefixes the count with spaces, leading to test error. * testsuite/obinary.sh: Remove leading spaces from 'wc -c' output. --- testsuite/obinary.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/obinary.sh b/testsuite/obinary.sh index abf6cd1..b437e3d 100755 --- a/testsuite/obinary.sh +++ b/testsuite/obinary.sh @@ -23,7 +23,7 @@ print_ver_ sed # If not, skip the test. printf a | sed cb > out1 \ || framework_failure_ "failed to run sed 'cb'" -size=$(wc -c < out1) \ +size=$(LC_ALL=C wc -c < out1 | sed 's/^ *//') \ || framework_failure_ "failed to check size of 'out1'" case $size in 2) skip_ "platform does not enable O_TEXT by default" ;; -- 2.11.0