Home | History | Annotate | Download | only in default-constructor
      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     broadcaster = obj.GetBroadcaster()
     10     # Do fuzz testing on the broadcaster obj, it should not crash lldb.
     11     import sb_broadcaster
     12     sb_broadcaster.fuzz_obj(broadcaster)
     13     obj.AdoptFileDesriptor(0, False)
     14     obj.AdoptFileDesriptor(1, False)
     15     obj.AdoptFileDesriptor(2, False)
     16     obj.Connect("file:/tmp/myfile")
     17     obj.Connect(None)
     18     obj.Disconnect()
     19     obj.IsConnected()
     20     obj.GetCloseOnEOF()
     21     obj.SetCloseOnEOF(True)
     22     obj.SetCloseOnEOF(False)
     23     #obj.Write(None, sys.maxint, None)
     24     #obj.Read(None, sys.maxint, 0xffffffff, None)
     25     obj.ReadThreadStart()
     26     obj.ReadThreadStop()
     27     obj.ReadThreadIsRunning()
     28     obj.SetReadThreadBytesReceivedCallback(None, None)
     29