From https://github.com/llvm/llvm-project/pull/148554#issuecomment-3083261858 - this adds an option for API tests to be run with the both PDB readers on Windows. As there are a lot of failures with PDB, this is an opt-in per test. To get PDB, `-g -gcodeview` has to be used on Clang. `-gcodeview` alone isn't enough, because it won't cause clang to pass `-debug` to the linker. #149498 tracks the (currently) failing tests.
19 lines
460 B
Python
19 lines
460 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
|
|
|
|
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"]
|
|
)
|