We have been seeing this test fail intermittently on our
2 stage AArch64 bot.
As far back as https://lab.llvm.org/buildbot/#/builders/53/builds/2694
Likely due to a lack of resources at certain times on the
shared machine. Up the time limit to give us some more room.
(this limit only applies to the watchdog thread, so if the
test passes then it won't take 20s)
void Watchdog() {
// This is just a fail-safe to turn a deadlock (in case the bug reappears)
// into a (slow) test failure.
- usleep(10000000);
+ usleep(20000000);
if (!out.try_lock()) {
write(2, "DEADLOCK\n", 9);
exit(1);