Bug 2217078

Summary: components/pcp/tests/testPCP FAILED
Product: Red Hat Enterprise Linux 9 Reporter: QI Fuli <fqi>
Component: papiAssignee: William Cohen <wcohen>
Status: CLOSED WONTFIX QA Contact: qe-baseos-tools-bugs
Severity: medium Docs Contact:
Priority: unspecified    
Version: 9.3CC: fqi, lkuprova, mcermak, mpetlan, ohudlick
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: aarch64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-06-28 15:37:04 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:

Description QI Fuli 2023-06-23 19:14:54 UTC
Description of problem:
The components/pcp/tests/testPCP test failed even if the machine had PCP setup on it.
If the component is disabled, the test result should be "SKIPPED".

Version-Release number of selected component (if applicable):
papi-6.0.0-15.el9.aarch64

How reproducible:
everytime.

Steps to Reproduce:
1. dnf install papi-testsuite
2. cd /usr/share/papi
3. ./components/pcp/tests/testPCP

Actual results:
# ./components/pcp/tests/testPCP 
PAPI_Library_init run time =  271940.0 uS
Testing PCP Component with PAPI 6.0.0
Found PCP Component at id 11
PAPI_enum_cmp_event returned -17 [Component Index isn't set].
FAILED!!!
Line # 108 Error in PAPI_enum_cmp_event failed.
: Component Index isn't set
Some tests require special hardware, permissions, OS, compilers
or library versions. PAPI may still function perfectly on your 
system without the particular feature being tested here. 

Expected results:
SKIPPED

Additional info:
This issue can also be reproduced on x86_64 and it has been resolved on upstream.
https://github.com/icl-utk-edu/papi/commit/ae24b2c73f6f1026e4a38aabf76020c4c1ec6e9a

Comment 1 William Cohen 2023-06-28 15:37:04 UTC
Hi,

papi-testsuite is not package shipped in the RHEL distribution.  Fixing this will have no effect on the RHEL distribution. Closing this bug as it is in a subpackage that isn't shipped in the distribution.