2 from lldbsuite
.test
.decorators
import *
3 from lldbsuite
.test
.lldbtest
import *
4 from lldbsuite
.test
import lldbutil
7 class CPPAcceleratorTableTestCase(TestBase
):
9 @skipIf(debug_info
=no_match(["dwarf"]))
10 @skipIf(dwarf_version
=[">=", "5"])
12 """Test that type lookups fail early (performance)"""
15 logfile
= self
.getBuildArtifact("dwarf.log")
17 self
.expect("log enable dwarf lookups -f" + logfile
)
18 target
, process
, thread
, bkpt
= lldbutil
.run_to_source_breakpoint(
19 self
, "break here", lldb
.SBFileSpec("main.cpp")
21 # Pick one from the middle of the list to have a high chance
22 # of it not being in the first file looked at.
23 self
.expect("frame variable inner_d")
25 with
open(logfile
) as f
:
29 if re
.findall(r
"[abcdefg]\.o: FindByNameAndTag\(\)", line
):
30 self
.assertIn("d.o", line
)
33 self
.assertEqual(n
, 1, "".join(log
))