def test_remote_launch(self):
    'Test SBProcess.RemoteLaunch() API with a process not in eStateConnected, and it should fail.'
    self.build()
    exe = self.getBuildArtifact('a.out')
    target = self.dbg.CreateTarget(exe)
    self.assertTrue(target, VALID_TARGET)
    process = target.LaunchSimple(None, None, self.get_process_working_directory())
    if self.TraceOn():
        print('process state:', state_type_to_str(process.GetState()))
    self.assertTrue((process.GetState() != lldb.eStateConnected))
    error = lldb.SBError()
    success = process.RemoteLaunch(None, None, None, None, None, None, 0, False, error)
    self.assertTrue((not success), 'RemoteLaunch() should fail for process state != eStateConnected')
Test SBProcess.RemoteLaunch() API with a process not in eStateConnected, and it should fail.
def test_remote_launch(self):
    
    self.build()
    exe = self.getBuildArtifact('a.out')
    target = self.dbg.CreateTarget(exe)
    self.assertTrue(target, VALID_TARGET)
    process = target.LaunchSimple(None, None, self.get_process_working_directory())
    if self.TraceOn():
        print('process state:', state_type_to_str(process.GetState()))
    self.assertTrue((process.GetState() != lldb.eStateConnected))
    error = lldb.SBError()
    success = process.RemoteLaunch(None, None, None, None, None, None, 0, False, error)
    self.assertTrue((not success), 'RemoteLaunch() should fail for process state != eStateConnected')