[compiler-rt] 8c363ef - [compiler-rt][lsan] Increase libdl_deadlock test timeout

David Spickett via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 2 06:38:04 PDT 2021


Author: David Spickett
Date: 2021-06-02T13:37:41Z
New Revision: 8c363efecc5686055c19ef44941322a2c26b07cf

URL: https://github.com/llvm/llvm-project/commit/8c363efecc5686055c19ef44941322a2c26b07cf
DIFF: https://github.com/llvm/llvm-project/commit/8c363efecc5686055c19ef44941322a2c26b07cf.diff

LOG: [compiler-rt][lsan] Increase libdl_deadlock test timeout

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)

Added: 
    

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

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/lsan/TestCases/Linux/libdl_deadlock.cpp b/compiler-rt/test/lsan/TestCases/Linux/libdl_deadlock.cpp
index 7c1f82f10beef..36b80759b2139 100644
--- a/compiler-rt/test/lsan/TestCases/Linux/libdl_deadlock.cpp
+++ b/compiler-rt/test/lsan/TestCases/Linux/libdl_deadlock.cpp
@@ -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);


        


More information about the llvm-commits mailing list