Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / lldb / test / API / python_api / default-constructor / sb_communication.py
bloba3a20e063c97680fe499b4e6513f6ec0900cb9db
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 broadcaster = obj.GetBroadcaster()
10 # Do fuzz testing on the broadcaster obj, it should not crash lldb.
11 import sb_broadcaster
13 sb_broadcaster.fuzz_obj(broadcaster)
14 obj.AdoptFileDesriptor(0, False)
15 obj.AdoptFileDesriptor(1, False)
16 obj.AdoptFileDesriptor(2, False)
17 obj.Connect("file:/tmp/myfile")
18 obj.Connect(None)
19 obj.Disconnect()
20 obj.IsConnected()
21 obj.GetCloseOnEOF()
22 obj.SetCloseOnEOF(True)
23 obj.SetCloseOnEOF(False)
24 # obj.Write(None, sys.maxint, None)
25 # obj.Read(None, sys.maxint, 0xffffffff, None)
26 obj.ReadThreadStart()
27 obj.ReadThreadStop()
28 obj.ReadThreadIsRunning()
29 obj.SetReadThreadBytesReceivedCallback(None, None)