[Lldb-commits] [lldb] 021b93e - [lldb] Make TestSBModule a no-SHARED_BUILD_TESTCASE (#188265)
via lldb-commits
lldb-commits at lists.llvm.org
Thu May 28 22:29:41 PDT 2026
Author: Pavel Labath
Date: 2026-05-29T07:29:37+02:00
New Revision: 021b93e7e763e81db740972c5f2b761a6f7f47b5
URL: https://github.com/llvm/llvm-project/commit/021b93e7e763e81db740972c5f2b761a6f7f47b5
DIFF: https://github.com/llvm/llvm-project/commit/021b93e7e763e81db740972c5f2b761a6f7f47b5.diff
LOG: [lldb] Make TestSBModule a no-SHARED_BUILD_TESTCASE (#188265)
Building libfoo.a twice (quickly) confuses the cache in
ObjectContainerBSDArchive (which works only with second granularity),
and causes the second test to fail due to accessing wrong parts of the
file.
I'm also making this a NO_DEBUG_INFO_TESTCASE as the debug info
distinction is not particularly relevant for this test. Technically,
this would be enough as the collision is between two debug info variants
of the same test case, but SHARED_BUILD_TESTCASE=False seems like a more
principled fix.
Added:
Modified:
lldb/test/API/python_api/sbmodule/TestSBModule.py
Removed:
################################################################################
diff --git a/lldb/test/API/python_api/sbmodule/TestSBModule.py b/lldb/test/API/python_api/sbmodule/TestSBModule.py
index f6edef22aef5f..73eb4838135de 100644
--- a/lldb/test/API/python_api/sbmodule/TestSBModule.py
+++ b/lldb/test/API/python_api/sbmodule/TestSBModule.py
@@ -9,6 +9,11 @@
class SBModuleAPICase(TestBase):
+ NO_DEBUG_INFO_TESTCASE = True
+
+ # Shared build causes collisions in the ObjectArchive file cache
+ SHARED_BUILD_TESTCASE = False
+
def setUp(self):
TestBase.setUp(self)
self.background_pid = None
More information about the lldb-commits
mailing list