mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-01 16:50:18 +00:00
Merge "Use EXPECT_LE instead of EXPECT_LT for some iio sensors that do not support runtime suspend." am: 105ac0f1ae am: 97f136591c
Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2213140 Change-Id: If07f8dd0ef6db3b77b06b9bb70fcd287c500f5a1 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
@@ -351,11 +351,11 @@ class SensorsHidlTestBase : public testing::TestWithParam<std::string> {
|
|||||||
minDelayAverageInterval / 10);
|
minDelayAverageInterval / 10);
|
||||||
|
|
||||||
// fastest rate sampling time is close to spec
|
// fastest rate sampling time is close to spec
|
||||||
EXPECT_LT(std::abs(minDelayAverageInterval - minSamplingPeriodInNs),
|
EXPECT_LE(std::abs(minDelayAverageInterval - minSamplingPeriodInNs),
|
||||||
minSamplingPeriodInNs / 10);
|
minSamplingPeriodInNs / 10);
|
||||||
|
|
||||||
// slowest rate sampling time is close to spec
|
// slowest rate sampling time is close to spec
|
||||||
EXPECT_LT(std::abs(maxDelayAverageInterval - maxSamplingPeriodInNs),
|
EXPECT_LE(std::abs(maxDelayAverageInterval - maxSamplingPeriodInNs),
|
||||||
maxSamplingPeriodInNs / 10);
|
maxSamplingPeriodInNs / 10);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user