-
Notifications
You must be signed in to change notification settings - Fork 68
fix: Fix power energy threshold related tests #332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
fix: Fix power energy threshold related tests #332
Conversation
Related-To: VLCLJ-2648 Signed-off-by: Anvesh Bakwad <anvesh.bakwad@intel.com>
| EXPECT_LT(pThreshold.processId, UINT32_MAX); | ||
| else | ||
| EXPECT_EQ(pThreshold.processId, UINT32_MAX); | ||
| EXPECT_LT(pThreshold.processId, UINT32_MAX); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If threshold has not been set, then this processId will be UINT32_MAX.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
used EXPECT_LE() now.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we specifically check this condition
"
If threshold has not been set, then this processId will be UINT32_MAX."
Related-To: VLCLJ-2648 Signed-off-by: Anvesh Bakwad <anvesh.bakwad@intel.com>
| } | ||
| LZT_TEST_F( | ||
| POWER_TEST, | ||
| GivenValidPowerHandleWhenGettingEnergyThresholdThenSuccessIsReturnedAndParameterValuesAreValid) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joshuaranjan Is this test needed now as we're deprecating the support of zesPowerGetEnergyThreshold() API as mentioned in https://docs.intel.com/documents/GfxSWAT/Common/sysman/SysmanAPI.html#power ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi Anvesh, this needs to be supported for platforms till CRI.
So lets add the test
Related-To: VLCLJ-2648
Signed-off-by: Anvesh Bakwad anvesh.bakwad@intel.com