develooper Front page | perl.perl5.porters | Postings from October 2016

[perl #129954] dist/Carp/t/arg_string.t: Test fails in blead due

Dan Collins
October 24, 2016 13:13
[perl #129954] dist/Carp/t/arg_string.t: Test fails in blead due
Message ID:
# New Ticket Created by  Dan Collins 
# Please include the string:  [perl #129954]
# in the subject line of all future correspondence about this issue. 
# <URL: >


Starting somewhere between v5.25.6-35-ge7619cc and v5.25.6-47-g69c5d0e, I
began seeing the following test failures on linux with -Dusequadmath ( and on Windows with all
configurations (

The Windows issue is the following test:

    like lm(-3.5e30), qr/main::lm\(-3\.5[eE]\+?30\)/;

The test expects numbers to be printed like "-3.5e30" or "-3.5e+30". Both
reasonable choices. Windows and quadruple precision floats are here to make
your life more interesting.

On Windows, I get "030" for the exponent, instead of "30". I can include a
log of this when I get home, I just can't see it from here.

The Linux issue is the same test:

    like lm(-3.5e30), qr/main::lm\(-3\.5[eE]\+?30\)/;

Under Quadmath, we get the following output:


Not sure if the behavior is wrong or if the test is, but I remember Jarkko
fighting to get the same sort of thing - printf number formats - to test
cleanly while he was working on the hexfp stuff a few months ago.

I'll bisect the Linux issue. Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About