[Lldb-commits] [lldb] [lldb][windows] do not use ConPTY in tests (PR #192657)
via lldb-commits
lldb-commits at lists.llvm.org
Fri Apr 17 06:48:07 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,c -- lldb/test/API/windows/conpty/main.c lldb/source/API/SBTarget.cpp lldb/source/Target/Target.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/windows/conpty/main.c b/lldb/test/API/windows/conpty/main.c
index 40ac96dc3..c38c86067 100644
--- a/lldb/test/API/windows/conpty/main.c
+++ b/lldb/test/API/windows/conpty/main.c
@@ -9,14 +9,14 @@
#define NUM_LINES 500
int main(int argc, char *argv[]) {
- if (strcmp(argv[1], "basic") == 0) {
- printf("Hello from ConPTY\n");
- fflush(stdout);
- } else if (strcmp(argv[1], "large") == 0) {
- for (int i = 0; i < NUM_LINES; i++)
- printf("line %04d\n", i);
- fflush(stdout);
- }
+ if (strcmp(argv[1], "basic") == 0) {
+ printf("Hello from ConPTY\n");
+ fflush(stdout);
+ } else if (strcmp(argv[1], "large") == 0) {
+ for (int i = 0; i < NUM_LINES; i++)
+ printf("line %04d\n", i);
+ fflush(stdout);
+ }
- return 0;
+ return 0;
}
``````````
</details>
https://github.com/llvm/llvm-project/pull/192657
More information about the lldb-commits
mailing list