[OpenACC] Implement 'collapse' for combined constructs.
[llvm-project.git] / lldb / test / API / python_api / default-constructor / sb_breakpointlocation.py
blobce09d3fb13a70f4300363a8080d2783f23502fe4
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.GetAddress()
10 obj.GetLoadAddress()
11 obj.SetEnabled(True)
12 obj.IsEnabled()
13 obj.SetCondition("i >= 10")
14 obj.GetCondition()
15 obj.SetThreadID(0)
16 obj.GetThreadID()
17 obj.SetThreadIndex(0)
18 obj.GetThreadIndex()
19 obj.SetThreadName("worker thread")
20 obj.GetThreadName()
21 obj.SetQueueName("my queue")
22 obj.GetQueueName()
23 obj.IsResolved()
24 obj.GetDescription(lldb.SBStream(), lldb.eDescriptionLevelVerbose)
25 breakpoint = obj.GetBreakpoint()
26 # Do fuzz testing on the breakpoint obj, it should not crash lldb.
27 import sb_breakpoint
29 sb_breakpoint.fuzz_obj(breakpoint)