[lldb] Use file to synchronize TestDeepBundle and TestBundleWithDotInFilename
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 14 Aug 2020 15:32:21 +0000 (08:32 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 14 Aug 2020 15:32:21 +0000 (08:32 -0700)
commit37ec83fcfc6c7915c51268f578b8e0dadb54c1cf
tree7e3dcae5b6578610cc1dad7e40eea09d9fabe876
parent1c80a6ce5f2217c01fb40bd43bc5bf094c32278a
[lldb] Use file to synchronize TestDeepBundle and TestBundleWithDotInFilename

Currently these two tests use an arbitrary wait of 5 seconds for the
inferior to finish setting up. When the test machine is under heavy load
this sometimes is insufficient leading to spurious test failures. This
patch adds synchronization trough a token on the file system. In
addition to making the test more reliable it also makes it much faster
because we no longer have to wait the full 5 seconds if the setup was
completed faster than that.

Differential revision: https://reviews.llvm.org/D85915
lldb/test/API/macosx/find-dsym/bundle-with-dot-in-filename/TestBundleWithDotInFilename.py
lldb/test/API/macosx/find-dsym/bundle-with-dot-in-filename/main.c
lldb/test/API/macosx/find-dsym/deep-bundle/TestDeepBundle.py
lldb/test/API/macosx/find-dsym/deep-bundle/main.c