"""
Test lldb 'process connect' command.
"""

import os, time
import unittest2
import lldb
from lldbtest import *

class ConnectRemoteTestCase(TestBase):

    mydir = "connect_remote"

    def test_connect_remote(self):
        """Test "process connect connect:://localhost:12345"."""

        # First, we'll start a fake debugserver (a simple echo server).
        import subprocess
        fakeserver = subprocess.Popen('./EchoServer.py')
        # This does the cleanup afterwards.
        def cleanup_fakeserver():
            fakeserver.kill()
            fakeserver.wait()
        self.addTearDownHook(cleanup_fakeserver)

        self.runCmd("process connect connect://localhost:12345")


if __name__ == '__main__':
    import atexit
    lldb.SBDebugger.Initialize()
    atexit.register(lambda: lldb.SBDebugger.Terminate())
    unittest2.main()

@@ -178,16 +178,47 @@
 emote%22%0A%0A
+    @unittest2.expectedFailure%0A
     def 

Add an expectedFailure decorator to the test_connect_remote() test case. It fails when running within the context of the test suite, but succeeds when running alone.