mirror of
https://github.com/eclipse/upm.git
synced 2025-03-14 20:47:30 +03:00
utilities_tests: Update us range for gtest
Be a bit more lenient with the acceptable range for the microsecond flavor of upm_delay (+/- 150us instead of +/- 100us). Signed-off-by: Noel Eck <noel.eck@intel.com>
This commit is contained in:
parent
63c3b4bc69
commit
76dd42a47d
@ -57,8 +57,8 @@ TEST_F(utilities_unit, test_upm_delay_us)
|
||||
upm_delay_us(0);
|
||||
upm_delay_us(1000);
|
||||
|
||||
/* +- check for 1000us +/- 100us */
|
||||
ASSERT_NEAR(upm_elapsed_us(&clock), 1000, 100);
|
||||
/* +- check for 1000us +/- 150us */
|
||||
ASSERT_NEAR(upm_elapsed_us(&clock), 1000, 150);
|
||||
}
|
||||
|
||||
/* Currently no need for a custom main (use gtest's)
|
||||
|
Loading…
x
Reference in New Issue
Block a user