[Lldb-commits] [lldb] fdd2437 - [lldb] Avoid permission issue in API test with SHARED_BUILD_TESTCASE (#187072)
via lldb-commits
lldb-commits at lists.llvm.org
Wed Mar 18 01:20:29 PDT 2026
Author: Stefan Gränitz
Date: 2026-03-18T09:20:25+01:00
New Revision: fdd2437af3cdc6d5fe199fcc9d991ccf503b55bd
URL: https://github.com/llvm/llvm-project/commit/fdd2437af3cdc6d5fe199fcc9d991ccf503b55bd
DIFF: https://github.com/llvm/llvm-project/commit/fdd2437af3cdc6d5fe199fcc9d991ccf503b55bd.diff
LOG: [lldb] Avoid permission issue in API test with SHARED_BUILD_TESTCASE (#187072)
Deleting the inferior binary after an API test-case causes issues on one
of the Windows bots. The previous the fix attempt in ca15db1cd509c236
didn't succeed. We have to use isolated subfolders for each test-case.
This is achieved easily by disabling SHARED_BUILD_TESTCASE.
Added:
Modified:
lldb/test/API/symstore/TestSymStoreLocal.py
Removed:
################################################################################
diff --git a/lldb/test/API/symstore/TestSymStoreLocal.py b/lldb/test/API/symstore/TestSymStoreLocal.py
index 48e7361aab09c..c1abd80b56f3d 100644
--- a/lldb/test/API/symstore/TestSymStoreLocal.py
+++ b/lldb/test/API/symstore/TestSymStoreLocal.py
@@ -59,14 +59,14 @@ def __enter__(self):
def __exit__(self, *exc_info):
"""
- Clean up and delete original exe so next make won't skip link command.
+ Remove symstore and reset settings
"""
shutil.rmtree(self._tmp)
- os.remove(self._test.getBuildArtifact(self._exe))
self._test.runCmd("settings clear plugin.symbol-locator.symstore")
class SymStoreLocalTests(TestBase):
+ SHARED_BUILD_TESTCASE = False
TEST_WITH_PDB_DEBUG_INFO = True
def build_inferior(self):
@@ -96,7 +96,6 @@ def test_no_symstore_url(self):
exe, sym = self.build_inferior()
with MockedSymStore(self, exe, sym):
self.try_breakpoint(exe, should_have_loc=False)
- self.runCmd("quit", check=False)
def test_external_lookup_off(self):
"""
@@ -108,7 +107,6 @@ def test_external_lookup_off(self):
f"settings set plugin.symbol-locator.symstore.urls {symstore_dir}"
)
self.try_breakpoint(exe, ext_lookup=False, should_have_loc=False)
- self.runCmd("quit", check=False)
def test_local_dir(self):
"""
@@ -120,4 +118,3 @@ def test_local_dir(self):
f"settings set plugin.symbol-locator.symstore.urls {symstore_dir}"
)
self.try_breakpoint(exe, should_have_loc=True)
- self.runCmd("quit", check=False)
More information about the lldb-commits
mailing list