Bug 868316 - pcp-testsuite - test-case 062 - incorrectly determined endian on ppc64
Summary: pcp-testsuite - test-case 062 - incorrectly determined endian on ppc64
Keywords:
Status: CLOSED CANTFIX
Alias: None
Product: Red Hat Developer Toolset
Classification: Red Hat
Component: pcp
Version: DTS 1.1 RHEL 6
Hardware: Unspecified
OS: Linux
unspecified
unspecified
Target Milestone: ---
: 1.1
Assignee: Nathan Scott
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-10-19 13:39 UTC by Tomas Dohnalek
Modified: 2013-02-15 07:30 UTC (History)
6 users (show)

Fixed In Version: devtoolset-1.1-pcp-3.6.9-2.el[56]
Doc Type: Bug Fix
Doc Text:
No documentation required.
Clone Of:
Environment:
Last Closed: 2013-01-22 15:35:56 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)
Proposed fix (644 bytes, patch)
2012-10-19 13:39 UTC, Tomas Dohnalek
no flags Details | Diff
Fix the handling of 64 bit big-endian machines in qa/062 (370 bytes, patch)
2012-10-19 22:01 UTC, Nathan Scott
no flags Details | Diff

Description Tomas Dohnalek 2012-10-19 13:39:34 UTC
Created attachment 630034 [details]
Proposed fix

Description of problem:
In test-case 062 there is perl script 

> endian=`perl -MConfig -e 'print substr $Config{byteorder}, 0, 4''
> if [ "$endian" = "4321" ]
> ...
> elif [ "$endian" = "1234" ]
> ...

used to distinguish between little and big endian, but it fails on ppc64 RHEL6.

Output on ppc64 RHEL6
# perl -MConfig -e 'print substr $Config{byteorder}, 0, 4'
8765
# perl -MConfig -e 'print $Config{byteorder}'
87654321

Version-Release number of selected component (if applicable):
3.6.9-1.el6

How reproducible:
always


Steps to Reproduce:
1. Install devtoolset-1.1.
2. Enable devtoolset-1.1.
3. Run test-case 062.
  
Actual results:


Expected results:


Additional info:

Comment 2 Nathan Scott 2012-10-19 22:01:50 UTC
Created attachment 630266 [details]
Fix the handling of 64 bit big-endian machines in qa/062

This patch modifies Tomas' approach to make it a slightly simpler one-line change.


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