mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 05:49:27 +00:00
Avoid skipping test if it's supported.
Previously the test will be skipped regardless whether setThreads is supported, this patch moves the check below and check the returned status code to determine whether the test should be skipped. Bug: b/287282833 Test: atest VtsHalPowerTargetTest Change-Id: I9ce6b4ead5e245478247903a75922ece74f38ee7
This commit is contained in:
@@ -255,11 +255,10 @@ TEST_P(PowerAidl, setThreads) {
|
||||
}
|
||||
ASSERT_TRUE(status.isOk());
|
||||
|
||||
if (mApiLevel < kCompatibilityMatrix8ApiLevel) {
|
||||
status = session->setThreads(kEmptyTids);
|
||||
if (mApiLevel < kCompatibilityMatrix8ApiLevel && isUnknownOrUnsupported(status)) {
|
||||
GTEST_SKIP() << "DEVICE not launching with Android 14 and beyond.";
|
||||
}
|
||||
|
||||
status = session->setThreads(kEmptyTids);
|
||||
ASSERT_FALSE(status.isOk());
|
||||
ASSERT_EQ(EX_ILLEGAL_ARGUMENT, status.getExceptionCode());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user