1 """ 2 Fuzz tests an object after the default construction to make sure it does not crash lldb. 3 """ 4 5 import sys 6 import lldb 7 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 14 sb_broadcaster.fuzz_obj(broadcaster) 15 obj.BroadcasterMatchesRef(broadcaster) 16 obj.GetDescription(lldb.SBStream()) 17 obj.Clear() 18