[Lldb-commits] [lldb] [lldb] Fix the TestFrameProviderThreadFilter test on Windows (PR #191046)

via lldb-commits lldb-commits at lists.llvm.org
Wed Apr 8 13:07:04 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/functionalities/scripted_frame_provider/thread_filter/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/functionalities/scripted_frame_provider/thread_filter/main.cpp b/lldb/test/API/functionalities/scripted_frame_provider/thread_filter/main.cpp
index f3611e88c..348af4c21 100644
--- a/lldb/test/API/functionalities/scripted_frame_provider/thread_filter/main.cpp
+++ b/lldb/test/API/functionalities/scripted_frame_provider/thread_filter/main.cpp
@@ -12,7 +12,8 @@ void thread_work() {
   --g_barrier;
   while (g_barrier.load() > 0)
     ;
-  std::this_thread::sleep_for(std::chrono::seconds(1)); // avoid timeout on Windows
+  std::this_thread::sleep_for(
+      std::chrono::seconds(1)); // avoid timeout on Windows
   while (g_spin) // break in thread
     std::this_thread::yield();
 }

``````````

</details>


https://github.com/llvm/llvm-project/pull/191046


More information about the lldb-commits mailing list