mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 11:36:00 +00:00
Check primitive duration is positive for supported primitives
Fix: 203629838 Test: VtsHalVibratorTargetTest Change-Id: I2e534f4589c9f594884385a99051c06f518103f7
This commit is contained in:
@@ -417,6 +417,9 @@ TEST_P(VibratorAidl, GetPrimitiveDuration) {
|
||||
|
||||
if (isPrimitiveSupported) {
|
||||
EXPECT_EQ(Status::EX_NONE, status.exceptionCode());
|
||||
if (primitive != CompositePrimitive::NOOP) {
|
||||
ASSERT_GT(duration, 0) << toString(primitive) << " " << duration;
|
||||
}
|
||||
} else {
|
||||
EXPECT_TRUE(isUnknownOrUnsupported(status)) << status;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user