#1488: fix test suite when building with ICC
----------------------+-----------------------------------------------------
Reporter: bubaflub | Owner:
Type: bug | Status: new
Priority: normal | Milestone:
Component: testing | Version: 2.1.0
Severity: medium | Keywords:
Lang: | Patch:
Platform: |
----------------------+-----------------------------------------------------
Comment(by bubaflub):
the failed test with t/op/sprintf.t fails on this line in sprintf_tests:
{{{
%.0g -0.0 -0
C99 standard mandates minus sign but C89 does not skip: MSWin32 VMS
hpux:10.20 openbsd netbsd:1.5 irix
}}}
which means it's trying to sprintf -0.0 as -0.
A reduced case (via parrot_shell) is:
{{{
new $P0, ['FixedPMCArray']
set $P0, 1
set $P0[0], '-0.0'
sprintf $S0, "%.0g", $P0
print $S0
.
}}}
I get "0" (and not "-0").
--
Ticket URL: <https://trac.parrot.org/parrot/ticket/1488#comment:3>
Parrot <https://trac.parrot.org/parrot/>
Parrot Development
_______________________________________________
parrot-tickets mailing list
[email protected]
http://lists.parrot.org/mailman/listinfo/parrot-tickets