mirror of
https://github.com/coreutils/coreutils.git
synced 2026-10-28 09:44:34 +08:00
tests: sort: avoid a false failure on very slow systems
* tests/sort/sort-NaN-infloop.sh: Up the timeout to about 240x a "standard" system, as this was seen to timeout on a mipsel VM using QEMU emulation. Reported by Bruno Haible.
This commit is contained in:
1 parent
1ea33dafe9
commit
83009c56fe
1 file changed
+4
-4
@@ -22,10 +22,10 @@ print_ver_ sort
|
||||
echo nan > F || framework_failure_
|
||||
printf 'nan\nnan\n' > exp || framework_failure_
|
||||
timeout 10 sort -g -m F F > out || fail=1
|
||||
|
||||
# This was seen to infloop on some systems until coreutils v9.2 (bug 55212)
|
||||
yes nan | head -n128095 | timeout 60 sort -g > /dev/null || fail=1
|
||||
|
||||
compare exp out || fail=1
|
||||
|
||||
# This was seen to infloop on some systems until coreutils v9.2 (bug 55212)
|
||||
yes nan | head -n128095 | timeout 120 sort -g > /dev/null || fail=1
|
||||
|
||||
|
||||
Exit $fail
|
||||
Reference in new issue
Block a user