mirror of
https://github.com/nasa/trick.git
synced 2025-02-20 17:22:52 +00:00
Up the allowance for time difference in GetTimeOfDayClock_test spin test. #87
This commit is contained in:
parent
93b683540d
commit
0825b32118
@ -121,8 +121,8 @@ TEST_F(GetTimeOfDayClockTest, ClockSpin) {
|
|||||||
// wall_clock_time() and the execution time of this test code. (J.Penn)
|
// wall_clock_time() and the execution time of this test code. (J.Penn)
|
||||||
// We know that the time difference must be at least as long as the spin_time.
|
// We know that the time difference must be at least as long as the spin_time.
|
||||||
EXPECT_GE((timclk->wall_clock_time() - tim_curr), spin_time);
|
EXPECT_GE((timclk->wall_clock_time() - tim_curr), spin_time);
|
||||||
// But, it can't be much longer. Allow 2 micro-seconds to allow for code execution time.
|
// But, it can't be much longer. Allow 10 micro-seconds to allow for code execution time.
|
||||||
EXPECT_LE((timclk->wall_clock_time() - tim_curr), spin_time+2);
|
EXPECT_LE((timclk->wall_clock_time() - tim_curr), spin_time+10);
|
||||||
|
|
||||||
delete timclk;
|
delete timclk;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user