[Bug 1318734] New: perl-Prima-1.45 tests fail on big-endian platforms

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

 



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

            Bug ID: 1318734
           Summary: perl-Prima-1.45 tests fail on big-endian platforms
           Product: Fedora
           Version: 24
         Component: perl-Prima
          Assignee: ppisar@xxxxxxxxxx
          Reporter: ppisar@xxxxxxxxxx
        QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
                CC: perl-devel@xxxxxxxxxxxxxxxxxxxxxxx, ppisar@xxxxxxxxxx
   External Bug ID: CPAN 113126



1.45 introduced t/Image/Bar.t tests. The tests fail on big endian platform like
this:

#   Failed test 'imRGB ropCopy'
#   at t/Image/Bar.t line 26.
#   005634005634005634005634 (actual)
#   123456123456123456123456 (expected)
#   Failed test 'imRGB ropOrPut'
#   at t/Image/Bar.t line 26.
#   00f6f400f6f400f6f400f6f4 (actual)
#   f2f4f6f2f4f6f2f4f6f2f4f6 (expected)
# Looks like you failed 2 tests of 1133.
t/Image/Bar.t ...........
Dubious, test returned 2 (wstat 512, 0x200)
Failed 2/1133 subtests

For example here
<http://ppc.koji.fedoraproject.org/koji/packageinfo?packageID=16932> is a
history of Prima builds, you can see first failing version is 1.45. Here
<http://ppc.koji.fedoraproject.org/koji/taskinfo?taskID=3224166> you can see
build on little-endian 64-bit PowerPC passed, while build on big-endian 64-bit
PowerPC failed.

One of the failing tests is:

$i->set(
    type     => im::RGB,
    color    => 0x563412,
);
$i->bar(0,0,3,0);
is_bytes( $i->data, "\x12\x34\x56" x 4, "imRGB ropCopy");

I believe you compare in-memory representation of 0x563412 that depends on
architecture. However, it's not the only bug because otherwise the the bytes
were reordered only. So probably there is another bug.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
--
Fedora Extras Perl SIG
http://www.fedoraproject.org/wiki/Extras/SIGs/Perl
perl-devel mailing list
perl-devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/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