[Lldb-commits] [lldb] 3f00cff - [lldb][test] Disable TestLocationsAfterRebuild.py on Windows

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Fri Jun 27 03:49:31 PDT 2025


Author: David Spickett
Date: 2025-06-27T10:49:22Z
New Revision: 3f00cff5c7871dbde3871d31fffbf183b3ce3419

URL: https://github.com/llvm/llvm-project/commit/3f00cff5c7871dbde3871d31fffbf183b3ce3419
DIFF: https://github.com/llvm/llvm-project/commit/3f00cff5c7871dbde3871d31fffbf183b3ce3419.diff

LOG: [lldb][test] Disable TestLocationsAfterRebuild.py on Windows

We can't remove the program file while lldb has it open.

Test added in https://github.com/llvm/llvm-project/pull/145994.

Added: 
    

Modified: 
    lldb/test/API/functionalities/breakpoint/breakpoint_locations/after_rebuild/TestLocationsAfterRebuild.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/functionalities/breakpoint/breakpoint_locations/after_rebuild/TestLocationsAfterRebuild.py b/lldb/test/API/functionalities/breakpoint/breakpoint_locations/after_rebuild/TestLocationsAfterRebuild.py
index c42fe33db71b0..1c7bb538d5df7 100644
--- a/lldb/test/API/functionalities/breakpoint/breakpoint_locations/after_rebuild/TestLocationsAfterRebuild.py
+++ b/lldb/test/API/functionalities/breakpoint/breakpoint_locations/after_rebuild/TestLocationsAfterRebuild.py
@@ -7,6 +7,7 @@
 import lldb
 import lldbsuite.test.lldbutil as lldbutil
 from lldbsuite.test.lldbtest import *
+from lldbsuite.test.decorators import skipIfWindows
 import os
 
 
@@ -16,6 +17,8 @@ class TestLocationsAfterRebuild(TestBase):
     # each debug info format.
     NO_DEBUG_INFO_TESTCASE = True
 
+    # On Windows we cannot remove a file that lldb is debugging.
+    @skipIfWindows
     def test_remaining_location_spec(self):
         """If we rebuild a couple of times some of the old locations
         get removed.  Make sure the command-line breakpoint id


        


More information about the lldb-commits mailing list