[Lldb-commits] [lldb] 92f4861 - [lldb][test] Avoid Windows import error in TestDriverWithClosedSTDIO.py

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Tue Oct 28 02:17:48 PDT 2025


Author: David Spickett
Date: 2025-10-28T09:17:29Z
New Revision: 92f486163d36008ed61ea1310ddd2b2b0a165027

URL: https://github.com/llvm/llvm-project/commit/92f486163d36008ed61ea1310ddd2b2b0a165027
DIFF: https://github.com/llvm/llvm-project/commit/92f486163d36008ed61ea1310ddd2b2b0a165027.diff

LOG: [lldb][test] Avoid Windows import error in TestDriverWithClosedSTDIO.py

Test added in #164905, skipped by #165318, but that change did not
guard the import. This import is run when we parse the file which
happens before any skips are applied.

Added: 
    

Modified: 
    lldb/test/API/driver/stdio_closed/TestDriverWithClosedSTDIO.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/driver/stdio_closed/TestDriverWithClosedSTDIO.py b/lldb/test/API/driver/stdio_closed/TestDriverWithClosedSTDIO.py
index 751926b116002..13437d05557bf 100644
--- a/lldb/test/API/driver/stdio_closed/TestDriverWithClosedSTDIO.py
+++ b/lldb/test/API/driver/stdio_closed/TestDriverWithClosedSTDIO.py
@@ -8,7 +8,9 @@
 import os
 import sys
 import socket
-import fcntl
+
+if os.name != "nt":
+    import fcntl
 
 import lldbsuite.test.lldbutil as lldbutil
 from lldbsuite.test.lldbtest import *


        


More information about the lldb-commits mailing list