Skip to content

[lldb] skip the python interactive I/O test on windows#175055

Merged
da-viper merged 2 commits intollvm:mainfrom
da-viper:fix-skip-windows-python-io
Jan 8, 2026
Merged

[lldb] skip the python interactive I/O test on windows#175055
da-viper merged 2 commits intollvm:mainfrom
da-viper:fix-skip-windows-python-io

Conversation

@da-viper
Copy link
Contributor

@da-viper da-viper commented Jan 8, 2026

There is no indication this ever worked on windows as this is the first test that checks python interactive console from a file.

Looking at the error from the CI, It closed the interpreter before running any python commands.
Will reconfirm this tomorrow when I have access to a windows machine.

Unblocks CI

From #174216

@da-viper da-viper requested a review from JDevlieghere as a code owner January 8, 2026 19:31
@llvmbot llvmbot added the lldb label Jan 8, 2026
@llvmbot
Copy link
Member

llvmbot commented Jan 8, 2026

@llvm/pr-subscribers-lldb

Author: Ebuka Ezike (da-viper)

Changes

There is no indication this ever worked on windows.

Looking at the error from the CI it closed the interpreter before running any commands.
Will reconfirm this tomorrow when I have access to a windows machine.

From #174216


Full diff: https://github.com/llvm/llvm-project/pull/175055.diff

2 Files Affected:

  • (modified) lldb/test/API/python_api/file_handle/TestFileHandle.py (+1)
  • (modified) lldb/test/Shell/ScriptInterpreter/Python/io.test (+2)
diff --git a/lldb/test/API/python_api/file_handle/TestFileHandle.py b/lldb/test/API/python_api/file_handle/TestFileHandle.py
index 707044a3afb0f..b69724ec8db11 100644
--- a/lldb/test/API/python_api/file_handle/TestFileHandle.py
+++ b/lldb/test/API/python_api/file_handle/TestFileHandle.py
@@ -680,6 +680,7 @@ def test_stdout_file(self):
             lines = [x for x in f.read().strip().split() if x != "7"]
             self.assertEqual(lines, ["foobar"])
 
+    @skipIfWindows
     def test_stdout_file_interactive(self):
         """Ensure when we read stdin from a file, outputs from python goes to the right I/O stream."""
         with open(self.in_filename, "w") as f:
diff --git a/lldb/test/Shell/ScriptInterpreter/Python/io.test b/lldb/test/Shell/ScriptInterpreter/Python/io.test
index 25e3de41724e0..1a3ff8dcd4258 100644
--- a/lldb/test/Shell/ScriptInterpreter/Python/io.test
+++ b/lldb/test/Shell/ScriptInterpreter/Python/io.test
@@ -1,3 +1,5 @@
+# UNSUPPORTED: system-windows
+
 # RUN: rm -rf %t.stdout %t.stderr
 # RUN: cat %s | %lldb --script-language python > %t.stdout 2> %t.stderr
 # RUN: cat %t.stdout | FileCheck %s --check-prefix STDOUT

@slydiman
Copy link
Contributor

slydiman commented Jan 8, 2026

Note lldb-remote-linux-win failed too.

Use @skipIf(hostoslist=["windows"]) instead of @skipIfWindows.

@da-viper da-viper merged commit 21a1e6e into llvm:main Jan 8, 2026
10 checks passed
kshitijvp pushed a commit to kshitijvp/llvm-project that referenced this pull request Jan 9, 2026
There is no indication this ever worked on windows as this is the first
test that checks python interactive console from a file.

Looking at the error from the CI, It closed the interpreter before
running any python commands.
Will reconfirm this when I have access to a windows machine. 


From llvm#174216
Priyanshu3820 pushed a commit to Priyanshu3820/llvm-project that referenced this pull request Jan 18, 2026
There is no indication this ever worked on windows as this is the first
test that checks python interactive console from a file.

Looking at the error from the CI, It closed the interpreter before
running any python commands.
Will reconfirm this when I have access to a windows machine. 


From llvm#174216
da-viper added a commit to da-viper/llvm-project that referenced this pull request Jan 27, 2026
There is no indication this ever worked on windows as this is the first
test that checks python interactive console from a file.

Looking at the error from the CI, It closed the interpreter before
running any python commands.
Will reconfirm this when I have access to a windows machine.

From llvm#174216

(cherry picked from commit 21a1e6e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants