parent
							
								
									1840ad4e57
								
							
						
					
					
						commit
						14aa26bbb5
					
				| 
						 | 
				
			
			@ -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)
 | 
			
		||||
    if data: 
 | 
			
		||||
        print 'Received:', data
 | 
			
		||||
        # Don't response to acks that are sent to us
 | 
			
		||||
        if data != '+':
 | 
			
		||||
            conn.send("+$#00")
 | 
			
		||||
    else:
 | 
			
		||||
        break
 | 
			
		||||
conn.close()
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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")
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
if __name__ == '__main__':
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue