Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8018bcb9 authored by Lais Andrade's avatar Lais Andrade Committed by Automerger Merge Worker
Browse files

Check primitive duration is positive for supported primitives am: f1b4dd3f

parents 75905a5f f1b4dd3f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;
            }