Changeset 215109 in webkit
- Timestamp:
- Apr 7, 2017, 12:07:33 PM (8 years ago)
- Location:
- trunk/Tools
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r215108 r215109 1 2017-04-07 Jonathan Bedard <jbedard@apple.com> 2 3 REGRESSION (r214553): Allow layout-tests to be run from Xcode without re-directing stdout, stdin and stderr 4 https://bugs.webkit.org/show_bug.cgi?id=170601 5 <rdar://problem/31492696> 6 7 Reviewed by Simon Fraser. 8 9 * TestRunnerShared/IOSLayoutTestCommunication.cpp: 10 (setUpIOSLayoutTestCommunication): Skip TCP setup if no port is in the environment. 11 (tearDownIOSLayoutTestCommunication): Only teardown if TCP was used. 12 1 13 2017-04-07 Aakash Jain <aakash_jain@apple.com> 2 14 -
trunk/Tools/TestRunnerShared/IOSLayoutTestCommunication.cpp
r214553 r215109 37 37 static int stdoutSocket; 38 38 static int stderrSocket; 39 static bool isUsingTCP = false; 39 40 40 41 static int connectToServer(sockaddr_in& serverAddress) … … 48 49 void setUpIOSLayoutTestCommunication() 49 50 { 50 int port = atoi(getenv("PORT")); 51 char* portFromEnvironment = getenv("PORT"); 52 if (!portFromEnvironment) 53 return; 54 int port = atoi(portFromEnvironment); 51 55 RELEASE_ASSERT(port > 0); 56 isUsingTCP = true; 52 57 53 58 struct hostent* host = gethostbyname("127.0.0.1"); … … 74 79 void tearDownIOSLayoutTestCommunication() 75 80 { 81 if (!isUsingTCP) 82 return; 76 83 close(stdinSocket); 77 84 close(stdoutSocket);
Note:
See TracChangeset
for help on using the changeset viewer.