Bug 868316

Summary: pcp-testsuite - test-case 062 - incorrectly determined endian on ppc64
Product: Red Hat Developer Toolset Reporter: Tomas Dohnalek <tdohnale>
Component: pcpAssignee: Nathan Scott <nathans>
Status: CLOSED CANTFIX QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: DTS 1.1 RHEL 6CC: fche, mcermak, mfranc, mgoodwin, mnewsome, ohudlick
Target Milestone: ---   
Target Release: 1.1   
Hardware: Unspecified   
OS: Linux   
Whiteboard:
Fixed In Version: devtoolset-1.1-pcp-3.6.9-2.el[56] Doc Type: Bug Fix
Doc Text:
No documentation required.
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-01-22 15:35:56 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Attachments:
Description Flags
Proposed fix
none
Fix the handling of 64 bit big-endian machines in qa/062 none

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.