[Lldb-commits] [lldb] [lldb] Avoid permission issue in API test with SHARED_BUILD_TESTCASE (PR #187072)

Stefan Gränitz via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 17 10:55:02 PDT 2026


================
@@ -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
----------------
weliveindetail wrote:

I haven't debugged why it isn't disabled already, but this change is effective for me locally. Before I had:
```
> ls lldb-test-build.noindex/symstore
TestSymStoreLocal/
```

This matches the error logs from the build bots. Now I get:
```
> ls lldb-test-build.noindex/symstore
TestSymStoreLocal.test_external_lookup_off_dwarf/  TestSymStoreLocal.test_local_dir_dwarf/  TestSymStoreLocal.test_no_symstore_url_dwarf/
TestSymStoreLocal.test_external_lookup_off_pdb/    TestSymStoreLocal.test_local_dir_pdb/    TestSymStoreLocal.test_no_symstore_url_pdb/
```

https://github.com/llvm/llvm-project/pull/187072


More information about the lldb-commits mailing list