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

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

From:
Dan Collins
Date:
October 24, 2016 13:13
Subject:
[perl #129954] dist/Carp/t/arg_string.t: Test fails in blead due
Message ID:
rt-4.0.24-22193-1477314804-1896.129954-75-0@perl.org
# New Ticket Created by  Dan Collins 
# Please include the string:  [perl #129954]
# in the subject line of all future correspondence about this issue. 
# <URL: https://rt.perl.org/Ticket/Display.html?id=129954 >


Hello!

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 (
http://perl.develop-help.com/raw/?id=196087
http://perl.develop-help.com/raw/?id=196097) and on Windows with all
configurations (http://perl5.test-smoke.org/report/50770)

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:

    main::lm(-3500000000000000000000000000000)

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.




nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About