Bug 1318734 - perl-Prima-1.45 tests fail on big-endian platforms
Summary: perl-Prima-1.45 tests fail on big-endian platforms
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: perl-Prima
Version: 24
Hardware: ppc64
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Petr Pisar
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-17 15:50 UTC by Petr Pisar
Modified: 2016-03-29 19:37 UTC (History)
2 users (show)

Fixed In Version: perl-Prima-1.46-2.fc25 perl-Prima-1.45-4.fc24
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-03-29 19:37:51 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
CPAN 113126 0 None None None 2016-03-17 15:50:13 UTC

Description Petr Pisar 2016-03-17 15:50:13 UTC
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.

Comment 1 Fedora Update System 2016-03-21 09:49:33 UTC
perl-Prima-1.45-3.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-79616dd821

Comment 2 Fedora Update System 2016-03-21 22:31:44 UTC
perl-Prima-1.45-3.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-79616dd821

Comment 3 Fedora Update System 2016-03-22 08:43:12 UTC
perl-Prima-1.45-4.fc24 has been submitted as an update to Fedora 24. https://bodhi.fedoraproject.org/updates/FEDORA-2016-79616dd821

Comment 4 Fedora Update System 2016-03-22 16:56:03 UTC
perl-Prima-1.45-4.fc24 has been pushed to the Fedora 24 testing repository. If problems still persist, please make note of it in this bug report.
See https://fedoraproject.org/wiki/QA:Updates_Testing for
instructions on how to install test updates.
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-79616dd821

Comment 5 Fedora Update System 2016-03-29 19:37:49 UTC
perl-Prima-1.45-4.fc24 has been pushed to the Fedora 24 stable repository. If problems still persist, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.