[Lldb-commits] [lldb] ca15db1 - [lldb] Fix permission issue in API test on lldb-x86_64-win (#187021)
via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 17 07:51:05 PDT 2026
Author: Stefan Gränitz
Date: 2026-03-17T15:50:59+01:00
New Revision: ca15db1cd509c236cd8138bcd098117d0106db56
URL: https://github.com/llvm/llvm-project/commit/ca15db1cd509c236cd8138bcd098117d0106db56
DIFF: https://github.com/llvm/llvm-project/commit/ca15db1cd509c236cd8138bcd098117d0106db56.diff
LOG: [lldb] Fix permission issue in API test on lldb-x86_64-win (#187021)
Deleting the executable at the end of this API test-case fails with a
permission error, likely because lldb still holds a reference to the
EXE. Exit explicitly to avoid that.
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 cedc76ac4354c..48e7361aab09c 100644
--- a/lldb/test/API/symstore/TestSymStoreLocal.py
+++ b/lldb/test/API/symstore/TestSymStoreLocal.py
@@ -1,6 +1,5 @@
import os
import shutil
-import tempfile
import lldb
from lldbsuite.test.decorators import *
@@ -51,7 +50,7 @@ def __enter__(self):
self._test.assertIsNotNone(key)
self._tmp = self._test.getBuildArtifact("tmp")
pdb_dir = os.path.join(self._tmp, self._pdb, key)
- os.makedirs(pdb_dir)
+ os.makedirs(pdb_dir, exist_ok=True)
shutil.move(
self._test.getBuildArtifact(self._pdb),
os.path.join(pdb_dir, self._pdb),
@@ -97,6 +96,7 @@ 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,6 +108,7 @@ 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):
"""
@@ -119,3 +120,4 @@ 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