mirror of
https://github.com/nasa/trick.git
synced 2025-02-18 16:30:21 +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)
|
||||
// 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);
|
||||
// But, it can't be much longer. Allow 2 micro-seconds to allow for code execution time.
|
||||
EXPECT_LE((timclk->wall_clock_time() - tim_curr), spin_time+2);
|
||||
// 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+10);
|
||||
|
||||
delete timclk;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user