From: Jarkko Hietaniemi Date: Wed, 29 Nov 2000 02:44:23 +0000 (+0000) Subject: Document the known sprintf test failures, exact standard X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=1937ada3708389a39348e1b429b4966ae618dd80;p=p5sagit%2Fp5-mst-13.2.git Document the known sprintf test failures, exact standard reference from Dominic Dunlop, NonStop-UX testing from Tom Bates. p4raw-id: //depot/perl@7909 --- diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 0597ff6..8ea61b3 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -823,6 +823,15 @@ this area.) No known fix. +=head2 sprintf tests 129 and 130 + +The op/sprintf tests 129 and 130 are known to fail in some platforms. +Examples include any platform using sfio, and Tandem's NonStop-UX. +The failing platforms do not comply with the ANSI C Standard, line +19ff on page 134 of ANSI X3.159 1989 to be exact. (They produce +something else than "1" and "-1" when formatting 0.6 and -0.6 using +the printf format "%.0f", most often they produce "0" and "-0".) + =head2 Storable tests fail in some platforms If any Storable tests fail the use of Storable is not advisable. diff --git a/t/op/sprintf.t b/t/op/sprintf.t index 97b66a5..4e80999 100755 --- a/t/op/sprintf.t +++ b/t/op/sprintf.t @@ -229,8 +229,8 @@ __END__ >%.0f< >0< >0< >%.0f< >2**38< >274877906944< >Should have exact int'l rep'n< >%.0f< >0.1< >0< ->%.0f< >0.6< >1< >Known to fail with sfio< ->%.0f< >-0.6< >-1< >Known to fail with sfio< +>%.0f< >0.6< >1< >Known to fail with sfio and nonstop-ux< +>%.0f< >-0.6< >-1< >Known to fail with sfio and nonstop-ux< >%.0f< >1< >1< >%#.0f< >1< >1.< >%g< >12345.6789< >12345.7<