[Lldb-commits] [lldb] r249613 - This test is useless. It doesn't work and it fails on MacOSX. Removing it.
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Wed Oct 7 13:38:20 PDT 2015
Author: gclayton
Date: Wed Oct 7 15:38:20 2015
New Revision: 249613
URL: http://llvm.org/viewvc/llvm-project?rev=249613&view=rev
Log:
This test is useless. It doesn't work and it fails on MacOSX. Removing it.
Removed:
lldb/trunk/test/functionalities/connect_remote/EchoServer.py
lldb/trunk/test/functionalities/connect_remote/TestConnectRemote.py
Removed: lldb/trunk/test/functionalities/connect_remote/EchoServer.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/connect_remote/EchoServer.py?rev=249612&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/connect_remote/EchoServer.py (original)
+++ lldb/trunk/test/functionalities/connect_remote/EchoServer.py (removed)
@@ -1,28 +0,0 @@
-#!/usr/bin/env python
-
-"""
-A simple echo server.
-Taken from http://docs.python.org/library/socket.html#example.
-"""
-
-import socket
-
-HOST = 'localhost' # Symbolic name meaning local interfaces
-PORT = 0 # Let the system give us a random free port
-s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
-s.bind((HOST, PORT))
-PORT = s.getsockname()[1]
-print 'Listening on %s:%d' % (HOST, PORT)
-s.listen(1)
-conn, addr = s.accept()
-print 'Connected by', addr
-while 1:
- data = conn.recv(1024)
- if data:
- print 'Received:', data
- # Don't response to acks that are sent to us
- if data != '+':
- conn.send("+$#00")
- else:
- break
-conn.close()
Removed: lldb/trunk/test/functionalities/connect_remote/TestConnectRemote.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/connect_remote/TestConnectRemote.py?rev=249612&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/connect_remote/TestConnectRemote.py (original)
+++ lldb/trunk/test/functionalities/connect_remote/TestConnectRemote.py (removed)
@@ -1,50 +0,0 @@
-"""
-Test lldb 'process connect' command.
-"""
-
-import os
-import unittest2
-import lldb
-import re
-from lldbtest import *
-
-class ConnectRemoteTestCase(TestBase):
-
- mydir = TestBase.compute_mydir(__file__)
-
- @expectedFailureFreeBSD("llvm.org/pr24896") # No stop reply packet on FreeBSD
- @expectedFailureWindows("llvm.org/pr22274: need a pexpect replacement for windows")
- @expectedFailureLinux("llvm.org/pr23475") # Test occasionally times out on the Linux build bot
- @skipIfLinux # Test occasionally times out on the Linux build bot
- @no_debug_info_test
- def test_connect_remote(self):
- """Test "process connect connect:://localhost:[port]"."""
-
- import pexpect
- # First, we'll start a fake debugserver (a simple echo server).
- fakeserver = pexpect.spawn('./EchoServer.py')
-
- # Turn on logging for what the child sends back.
- if self.TraceOn():
- fakeserver.logfile_read = sys.stdout
-
- # Schedule the fake debugserver to be shutting down during teardown.
- def shutdown_fakeserver():
- fakeserver.close()
- self.addTearDownHook(shutdown_fakeserver)
-
- # Wait until we receive the server ready message before continuing.
- line = fakeserver.readline()
- self.assertTrue(line.startswith("Listening on localhost:"))
- port = int(re.match('Listening on localhost:([0-9]+)', line).group(1))
- self.assertTrue(port > 0)
-
- # Connect to the fake server....
- self.runCmd("process connect -p gdb-remote connect://localhost:" + str(port))
-
-
-if __name__ == '__main__':
- import atexit
- lldb.SBDebugger.Initialize()
- atexit.register(lambda: lldb.SBDebugger.Terminate())
- unittest2.main()
More information about the lldb-commits
mailing list