================ @@ -12,10 +12,13 @@ int main(int argc, char const *argv[]) { // Waiting to be attached by the debugger. temp = 0; + if (argc > 1 && argv[1][0] == 'q') + return 0; + while (temp < 30) { - std::this_thread::sleep_for(std::chrono::seconds(2)); // Waiting to be attached... - temp++; - } + std::this_thread::sleep_for(std::chrono::seconds(2)); // Waiting to be attached... + temp++; + } ---------------- jimingham wrote:
I'm actually not using that feature of the test in my test at all. I only use this main passing `q` as the first argument so it doesn't sleep, it just exits immediately. I think the sleep is there to keep this from busy-waiting. You could have it do that forever and then rely on a test failure to cause it to get torn down? But I'd rather not change that since it's entirely unrelated to the test I added... https://github.com/llvm/llvm-project/pull/65822 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits