]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: wc: fix hardware acceleration disabling test
authorPádraig Brady <P@draigBrady.com>
Wed, 24 Sep 2025 14:52:36 +0000 (15:52 +0100)
committerPádraig Brady <P@draigBrady.com>
Wed, 24 Sep 2025 14:53:34 +0000 (15:53 +0100)
* tests/wc/wc-cpu.sh: The message is only printed with wc -l.
Reported by Mathieu Borderé.

tests/wc/wc-cpu.sh

index 725817a7cc42b64e9576cc76e979315532eca037..1118fe14ed86291812cd55d0ba53b0a1a16b7796 100755 (executable)
@@ -20,7 +20,7 @@
 print_ver_ wc
 
 GLIBC_TUNABLES='glibc.cpu.hwcaps=-AVX2' \
- wc --debug /dev/null 2>debug || fail=1
+ wc -l --debug /dev/null 2>debug || fail=1
 grep 'using.*hardware support' debug && fail=1
 
 lines=$(shuf -i 0-1000 | head -n1)  || framework_failure_