[Lldb-commits] [lldb] [lldb][windows] fix TestReplaceDLL.py reruns (PR #187002)

Charles Zablit via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 17 04:49:50 PDT 2026


https://github.com/charles-zablit updated https://github.com/llvm/llvm-project/pull/187002

>From d53aca3ed913f099454f4d4013d6cdb69ce93b54 Mon Sep 17 00:00:00 2001
From: Charles Zablit <c_zablit at apple.com>
Date: Tue, 17 Mar 2026 11:37:45 +0000
Subject: [PATCH 1/2] [lldb][windows] fix TestReplaceDLL.py reruns

---
 lldb/packages/Python/lldbsuite/test/lldbtest.py            | 2 +-
 lldb/test/API/windows/launch/replace-dll/TestReplaceDLL.py | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 84ed8fdf65c0b..5c9f1fb0648c7 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -777,7 +777,7 @@ def makeBuildDir(self):
         if os.path.isdir(bdir) and not self.SHARED_BUILD_TESTCASE:
             shutil.rmtree(bdir)
         lldbutil.mkdir_p(bdir)
-
+    
     def getBuildArtifact(self, name="a.out"):
         """Return absolute path to an artifact in the test's build directory."""
         return os.path.join(self.getBuildDir(), name)
diff --git a/lldb/test/API/windows/launch/replace-dll/TestReplaceDLL.py b/lldb/test/API/windows/launch/replace-dll/TestReplaceDLL.py
index afa97cf4afe50..91111702169ae 100644
--- a/lldb/test/API/windows/launch/replace-dll/TestReplaceDLL.py
+++ b/lldb/test/API/windows/launch/replace-dll/TestReplaceDLL.py
@@ -8,6 +8,8 @@
 
 
 class ReplaceDllTestCase(TestBase):
+    SHARED_BUILD_TESTCASE = False
+
     @skipUnlessWindows
     def test(self):
         """

>From 6a00933e170011cb6db38b7fa37a5f9935d63daa Mon Sep 17 00:00:00 2001
From: Charles Zablit <c_zablit at apple.com>
Date: Tue, 17 Mar 2026 11:49:38 +0000
Subject: [PATCH 2/2] fixup! [lldb][windows] fix TestReplaceDLL.py reruns

---
 lldb/packages/Python/lldbsuite/test/lldbtest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index 5c9f1fb0648c7..84ed8fdf65c0b 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -777,7 +777,7 @@ def makeBuildDir(self):
         if os.path.isdir(bdir) and not self.SHARED_BUILD_TESTCASE:
             shutil.rmtree(bdir)
         lldbutil.mkdir_p(bdir)
-    
+
     def getBuildArtifact(self, name="a.out"):
         """Return absolute path to an artifact in the test's build directory."""
         return os.path.join(self.getBuildDir(), name)



More information about the lldb-commits mailing list