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:
Noel Eck 2018-03-13 15:25:24 -07:00
parent 63c3b4bc69
commit 76dd42a47d

View File

@ -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)