[compiler-rt][lsan] Increase libdl_deadlock test timeout
authorDavid Spickett <david.spickett@linaro.org>
Wed, 2 Jun 2021 13:30:37 +0000 (13:30 +0000)
committerDavid Spickett <david.spickett@linaro.org>
Wed, 2 Jun 2021 13:37:41 +0000 (13:37 +0000)
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)

compiler-rt/test/lsan/TestCases/Linux/libdl_deadlock.cpp

index 7c1f82f..36b8075 100644 (file)
@@ -29,7 +29,7 @@ int Callback(struct dl_phdr_info *info, size_t size, void *data) {
 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);