diff options
Diffstat (limited to 'tests/mb-non-UTF8-performance')
-rwxr-xr-x | tests/mb-non-UTF8-performance | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/mb-non-UTF8-performance b/tests/mb-non-UTF8-performance index fc371bd6..c350dfb9 100755 --- a/tests/mb-non-UTF8-performance +++ b/tests/mb-non-UTF8-performance @@ -31,7 +31,9 @@ expensive_ # the unibyte test takes at least 10ms of user time. n_lines=100000 while :; do - yes $(printf '%078d' 0) | head -$n_lines > in || framework_failure_ + ${AWK-awk} -v n_lines=$n_lines \ + 'BEGIN {while (n_lines--) printf "%078d\n", 0}' </dev/null >in || + framework_failure_ ubyte_ms=$(LC_ALL=C user_time_ 1 grep -i foobar in) || fail=1 test $ubyte_ms -ge 10 && break n_lines=$(expr $n_lines + 200000) |