Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / python_api / default-constructor / sb_event.py
blob8beddfc5d2a7cd8c7d9a93d051f0f96325d219a7
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.GetDataFlavor()
10 obj.GetType()
11 broadcaster = obj.GetBroadcaster()
12 # Do fuzz testing on the broadcaster obj, it should not crash lldb.
13 import sb_broadcaster
15 sb_broadcaster.fuzz_obj(broadcaster)
16 obj.BroadcasterMatchesRef(broadcaster)
17 obj.GetDescription(lldb.SBStream())
18 obj.Clear()