Skip to content

Commit

Permalink
Reduce Host test loops from 2000 to 50
Browse files Browse the repository at this point in the history
Runs more slowly on Host
  • Loading branch information
mikee47 committed Jan 12, 2024
1 parent 9360204 commit dacb6fb
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion tests/HostTests/modules/Clocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ template <class Clock, typename TimeType> class ClockTestTemplate : public TestG
{
printLimits();

for(unsigned i = 0; i < 2000; ++i) {
unsigned loopCount{2000};
#ifdef ARCH_HOST
loopCount = 50;
#endif
while(loopCount--) {
auto value = os_random();
check<NanoTime::Milliseconds>(value);
check<NanoTime::Microseconds>(value);
Expand Down

0 comments on commit dacb6fb

Please sign in to comment.