[Lldb-commits] [lldb] [lldb][test] Increase polling frequency in ProcessAttach (PR #201532)
via lldb-commits
lldb-commits at lists.llvm.org
Thu Jun 4 01:58:12 PDT 2026
github-actions[bot] wrote:
<!--LLVM CODE FORMAT COMMENT: {clang-format}-->
:warning: C/C++ code formatter, clang-format found issues in your code. :warning:
<details>
<summary>
You can test this locally with the following command:
</summary>
``````````bash
git-clang-format --diff origin/main HEAD --extensions cpp -- lldb/test/API/commands/process/attach/main.cpp --diff_from_common_commit
``````````
:warning:
The reproduction instructions above might return results for more than one PR
in a stack if you are using a stacked PR workflow. You can limit the results by
changing `origin/main` to the base branch/commit you want to compare against.
:warning:
</details>
<details>
<summary>
View the diff from clang-format here.
</summary>
``````````diff
diff --git a/lldb/test/API/commands/process/attach/main.cpp b/lldb/test/API/commands/process/attach/main.cpp
index 24cd954c5..4d499ab3a 100644
--- a/lldb/test/API/commands/process/attach/main.cpp
+++ b/lldb/test/API/commands/process/attach/main.cpp
@@ -5,13 +5,13 @@
volatile int g_val = 12345;
int main(int argc, char const *argv[]) {
- lldb_enable_attach();
+ lldb_enable_attach();
- // This provides a breakpoint we hit every 50ms that the tests can hit.
- std::chrono::milliseconds poll_time(50);
- unsigned total_wait_in_sec = 60;
- unsigned total_wait_time = total_wait_in_sec * (1000 / poll_time.count());
+ // This provides a breakpoint we hit every 50ms that the tests can hit.
+ std::chrono::milliseconds poll_time(50);
+ unsigned total_wait_in_sec = 60;
+ unsigned total_wait_time = total_wait_in_sec * (1000 / poll_time.count());
- for (unsigned wait = 0; wait < total_wait_time; wait++)
- std::this_thread::sleep_for(poll_time); // Waiting to be attached...
+ for (unsigned wait = 0; wait < total_wait_time; wait++)
+ std::this_thread::sleep_for(poll_time); // Waiting to be attached...
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/201532
More information about the lldb-commits
mailing list