Files
Omair Javaid bca95d1e4d Disable shared builds for tests failing on Windows (#182249)
PR #181720 introduced shared builds for LLDB API tests to improve test
efficiency. But several data formatter tests requiring PDB debug info
are failing on Windows x64 and AArch64 platforms.

This patch disables shared builds for these tests by setting
SHARED_BUILD_TESTCASE = False

The shared build optimization breaks these tests because they reuse
build artifacts between test methods
The test runs may could use multiple methods with different debug
formats or compiler flags. When a test runs first it builds with one set
of flags, but then it runs again but **make** sees the source unchanged
so it skips rebuilding and reuses the same old binary instead of
rebuilding with correct flags.
2026-02-19 17:17:53 +05:00

20 lines
494 B
Python

"""
Test PDB enabled tests
"""
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
class TestBuildMethod(TestBase):
TEST_WITH_PDB_DEBUG_INFO = True
SHARED_BUILD_TESTCASE = False
def test(self):
self.build()
self.assertTrue(self.dbg.CreateTarget(self.getBuildArtifact()))
if self.getDebugInfo() == "pdb":
self.expect(
"target modules dump symfile", patterns=["SymbolFile (native-)?pdb"]
)