Bug 170601

Summary: REGRESSION (r214553): Allow layout-tests to be run from Xcode without re-directing stdout, stdin and stderr
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Jonathan Bedard <jbedard>
Status: RESOLVED FIXED    
Severity: Normal CC: commit-queue, lforschler, simon.fraser
Priority: P2    
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch none

Description Jonathan Bedard 2017-04-07 08:22:28 PDT
<http://trac.webkit.org/changeset/214553> always expects to use TCP for stdout, stdin and stderr on iOS simulators.  Both WebKitTestRunnerApp.app and DumpRenderTree.app should allow for stdout, stdin and stderr to be routed to their normal file handles for Xcode debugging if the PORT environment is not defined.
Comment 1 Jonathan Bedard 2017-04-07 08:28:59 PDT
<rdar://problem/31492696>
Comment 2 Jonathan Bedard 2017-04-07 09:10:47 PDT
Created attachment 306510 [details]
Patch
Comment 3 Simon Fraser (smfr) 2017-04-07 09:14:48 PDT
Comment on attachment 306510 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=306510&action=review

> Tools/TestRunnerShared/IOSLayoutTestCommunication.cpp:54
>      int port = atoi(getenv("PORT"));

Why not use portFromEnvironment here?
Comment 4 Jonathan Bedard 2017-04-07 09:19:30 PDT
Created attachment 306511 [details]
Patch
Comment 5 WebKit Commit Bot 2017-04-07 12:07:36 PDT
Comment on attachment 306511 [details]
Patch

Clearing flags on attachment: 306511

Committed r215109: <http://trac.webkit.org/changeset/215109>
Comment 6 WebKit Commit Bot 2017-04-07 12:07:38 PDT
All reviewed patches have been landed.  Closing bug.