[Lldb-commits] [lldb] [lldb] Fix permission issue in API test on lldb-x86_64-win (PR #187021)
Stefan Gränitz via lldb-commits
lldb-commits at lists.llvm.org
Tue Mar 17 06:32:39 PDT 2026
https://github.com/weliveindetail updated https://github.com/llvm/llvm-project/pull/187021
>From 546aec733921e04c532078e3f95aaacd0af37509 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Gr=C3=A4nitz?= <stefan.graenitz at gmail.com>
Date: Tue, 17 Mar 2026 14:17:48 +0100
Subject: [PATCH 1/2] [lldb] Fix permission issue in API test on
lldb-x86_64-win
---
lldb/test/API/symstore/TestSymStoreLocal.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lldb/test/API/symstore/TestSymStoreLocal.py b/lldb/test/API/symstore/TestSymStoreLocal.py
index cedc76ac4354c..c8e900a1473dc 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 *
@@ -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("exit")
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("exit")
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("exit")
>From 44015e4672c4fa905f9c31b7ff6e12808bcc910f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Gr=C3=A4nitz?= <stefan.graenitz at gmail.com>
Date: Tue, 17 Mar 2026 14:32:17 +0100
Subject: [PATCH 2/2] Tolerate existing symstore directories
---
lldb/test/API/symstore/TestSymStoreLocal.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lldb/test/API/symstore/TestSymStoreLocal.py b/lldb/test/API/symstore/TestSymStoreLocal.py
index c8e900a1473dc..e5d217f5ff347 100644
--- a/lldb/test/API/symstore/TestSymStoreLocal.py
+++ b/lldb/test/API/symstore/TestSymStoreLocal.py
@@ -50,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, exists_ok=True)
shutil.move(
self._test.getBuildArtifact(self._pdb),
os.path.join(pdb_dir, self._pdb),
More information about the lldb-commits
mailing list