]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: fix fraction comparison in sort-float master
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 11 Jul 2025 21:43:32 +0000 (14:43 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Fri, 11 Jul 2025 21:45:04 +0000 (14:45 -0700)
commit3a9ec02138984004719c02da8d3e13665215049f
tree2be2393ba1b4808e3232fa3b29f3737fe2e03f14
parent8f9fc8f08c10c3b097211f95c6354a85d41f1101
tests: fix fraction comparison in sort-float

Problem reported by Cosima Neidahl <https://bugs.gnu.org/78985#13>.
* tests/sort/sort-float.sh: At top level, use C locale at first.
(dbl_minima_order): Assume C locale.
Use string comparison for the fractional parts.

2025-07-10  Paul Eggert  <eggert@cs.ucla.edu>

tests: fix integer overflow in sort-float
Problem reported by Cosima Neidahl <https://bugs.gnu.org/78985>.
* tests/sort/sort-float.sh (dbl_minima_order):
Use expr instead of test, to avoid problems with integers
too large for the shell.
tests/sort/sort-float.sh