From: Pádraig Brady
Date: Tue, 7 Apr 2026 20:44:56 +0000 (+0100) Subject: tests: numfmt: avoid false failure on systems without long double X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5b0cb4379abfe328bc6a3838fbc59ebf6b39b720;p=thirdparty%2Fcoreutils.git tests: numfmt: avoid false failure on systems without long double * tests/numfmt/numfmt.pl: Move recently added test that depends on long double support to the appropriately guarded set. Also reduce the value to be in the definitely safe long double range. Reported by Bruno Haible. --- diff --git a/tests/numfmt/numfmt.pl b/tests/numfmt/numfmt.pl index b78aef14b8..c6ed3f0736 100755 --- a/tests/numfmt/numfmt.pl +++ b/tests/numfmt/numfmt.pl @@ -898,11 +898,6 @@ my @Tests = "Try '$prog --help' for more information.\n"}, {EXIT => 1}], - # Large integers beyond 2^53 must be preserved exactly - # (no f64 round-trip). - ['large-int-precision', '--from=iec 9153396227555392131', - {OUT => "9153396227555392131"}], - # Scientific notation ('1e9') is not accepted as numeric input; # it is reported as an invalid suffix. ['reject-sci-notation', '1e9', @@ -962,6 +957,11 @@ my @Limit_Tests = ['large-1','1000000000000000', {OUT=>"1000000000000000"}], # 18 digits is OK ['large-2','1000000000000000000', {OUT=>"1000000000000000000"}], + + # Large integers beyond 2^53 must be preserved exactly + # (no double round-trip). + ['large-2a', '915339622755539213', {OUT => "915339622755539213"}], + # 19 digits is too much (without output scaling) ['large-3','10000000000000000000', {ERR => "$prog: value too large to be printed: '1e+19' " .