commit | 8018bcb90695b2bc23dde771c9914049a82abfa7 | [log] [tgz] |
---|---|---|
author | Lais Andrade <lsandrade@google.com> | Mon May 16 11:42:56 2022 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Mon May 16 11:42:56 2022 +0000 |
tree | cf56fc79816595610a165bdc16b27e89f85a8009 | |
parent | 75905a5f9473ae0cc8cbdfa6ec580a87e1a1c581 [diff] | |
parent | f1b4dd3f1d98e09dc595862e1a707f02d02dd19b [diff] |
Check primitive duration is positive for supported primitives am: f1b4dd3f1d Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2097762 Change-Id: I630adaebdc9e33237416f75f623d8a92f3a71eb2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/vibrator/aidl/vts/VtsHalVibratorTargetTest.cpp b/vibrator/aidl/vts/VtsHalVibratorTargetTest.cpp index 5251529..3841715 100644 --- a/vibrator/aidl/vts/VtsHalVibratorTargetTest.cpp +++ b/vibrator/aidl/vts/VtsHalVibratorTargetTest.cpp
@@ -417,6 +417,9 @@ 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; }