Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / python_api / default-constructor / sb_section.py
blobd6118186b4b95065f6101c7e718fe1ca95232f7e
1 """
2 Fuzz tests an object after the default construction to make sure it does not crash lldb.
3 """
5 import lldb
8 def fuzz_obj(obj):
9 obj.IsValid()
10 obj.GetName()
11 obj.FindSubSection("hello_section_name")
12 obj.GetNumSubSections()
13 obj.GetSubSectionAtIndex(600)
14 obj.GetFileAddress()
15 obj.GetByteSize()
16 obj.GetFileOffset()
17 obj.GetFileByteSize()
18 obj.GetSectionData(1000, 100)
19 obj.GetSectionType()
20 obj.GetDescription(lldb.SBStream())
21 for subsec in obj:
22 s = str(subsec)
23 len(obj)