Fixed the connect remote test.

llvm-svn: 198961
This commit is contained in:
Greg Clayton 2014-01-10 22:21:12 +00:00
parent 1840ad4e57
commit 14aa26bbb5
2 changed files with 8 additions and 7 deletions

View File

@ -17,7 +17,11 @@ conn, addr = s.accept()
print 'Connected by', addr
while 1:
data = conn.recv(1024)
if not data: break
conn.send(data)
print 'Received:', data
if data:
print 'Received:', data
# Don't response to acks that are sent to us
if data != '+':
conn.send("+$#00")
else:
break
conn.close()

View File

@ -32,10 +32,7 @@ class ConnectRemoteTestCase(TestBase):
fakeserver.expect_exact('Listening on localhost:12345')
# Connect to the fake server....
if sys.platform.startswith('freebsd') or sys.platform.startswith("linux"):
self.runCmd("process connect -p gdb-remote connect://localhost:12345")
else:
self.runCmd("process connect connect://localhost:12345")
self.runCmd("process connect -p gdb-remote connect://localhost:12345")
if __name__ == '__main__':