From: René Scharfe Date: Sat, 02 Oct 2021 20:33:18 GMT Subject: [PATCH] p5311: handle spaces in wc(1) output Message-ID: Some implementations of wc(1) align their output with leading spaces, even when just a single number is requested, e.g. with "wc -c". p5311 runs all tests successfully on such a platform, but fails to aggregate their results and reports: # passed all 33 test(s) 1..33 bad input line: 57144 Use the helper function test_file_size to get the number without any spaces in a portable way to avoid the issue. Signed-off-by: René Scharfe --- t/perf/README | 2 +- t/perf/p5311-pack-bitmaps-fetch.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/t/perf/README b/t/perf/README index fb9127a66f..802402d738 100644 --- a/t/perf/README +++ b/t/perf/README @@ -190,7 +190,7 @@ shown in the aggregated output. For example: ' test_size 'output size' - wc -c