202
201
bool pinged= false;
203
while ((pinged= ping()) == false and
204
counter < (is_helgrind() or is_valgrind() ? 20 : 5))
206
dream(counter++, 50000);
203
uint32_t timeout= 20; // This number should be high enough for valgrind startup (which is slow)
208
for (waited= 0, retry= 1; ; retry++, waited+= this_wait)
210
if ((pinged= ping()) == true)
214
else if (waited >= timeout)
219
this_wait= retry * retry / 3 + 1;
220
libtest::dream(this_wait, 0);
209
224
if (pinged == false)