[Bug 1716422] New: perl-Test-Unit-0.25-32.fc31 FTBFS with perl 5.30: test_numericness test fails on 0xF00

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugzilla.redhat.com/show_bug.cgi?id=1716422

            Bug ID: 1716422
           Summary: perl-Test-Unit-0.25-32.fc31 FTBFS with perl 5.30:
                    test_numericness test fails on 0xF00
           Product: Fedora
           Version: 30
            Status: NEW
         Component: perl-Test-Unit
          Assignee: xavier@xxxxxxxxxxxx
          Reporter: ppisar@xxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: perl-devel@xxxxxxxxxxxxxxxxxxxxxxx,
                    xavier@xxxxxxxxxxxx
  Target Milestone: ---
    Classification: Fedora



perl-Test-Unit-0.25-32.fc31 fails build with perl 5.30 because a test started
to fail:

$ perl -Ilib t/assert.t                                    
STARTING TEST RUN                                                               
1..40                                                                           
[...]
ok PASS test_assert_raises

not ok ERROR test_numericness
t/tlib/AssertTest.pm:48 - test_numericness(Class::Inner::__A26)
For string '0xF00', expect f but got t
ok PASS test_fail_assert_null

That's caused by a change in perl. Perl 5.28 handles it as string:

$ perl -e 'print qq{YES\n} if q{0xF00} == 0'
YES

While perl 5.30 handles it as a number:

$ perl -e 'print qq{YES\n} if q{0xF00} == 0'

The failing test has a relevant notice at t/tlib/AssertTest.pm:37:

    '0xF00' => 'f', # controversial?  but if you +=10 then it's == 10

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
perl-devel mailing list -- perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to perl-devel-leave@xxxxxxxxxxxxxxxxxxxxxxx
Fedora Code of Conduct: https://getfedora.org/code-of-conduct.html
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/perl-devel@xxxxxxxxxxxxxxxxxxxxxxx




[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Legacy Announce]     [Fedora PHP Devel]     [Kernel Devel]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Big List of Linux Books]     [Gimp]     [Yosemite Information]

  Powered by Linux