Bug 175735

Summary: Fix leak-checking for iOS Simulators
Product: WebKit Reporter: Jonathan Bedard <jbedard>
Component: Tools / TestsAssignee: Jonathan Bedard <jbedard>
Status: RESOLVED FIXED    
Severity: Normal CC: aakash_jain, ap, buildbot, commit-queue, darin, dbates, ddkilzer, glenn, lforschler, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch
none
Patch
none
Patch for landing none

Description Jonathan Bedard 2017-08-18 13:45:23 PDT
We can't check leaks for iOS Simulators since we close the process before we check for leaks.
Comment 1 Jonathan Bedard 2017-08-18 13:49:07 PDT
Created attachment 318537 [details]
Patch
Comment 2 WebKit Commit Bot 2017-08-18 16:26:43 PDT
Comment on attachment 318537 [details]
Patch

Clearing flags on attachment: 318537

Committed r220942: <http://trac.webkit.org/changeset/220942>
Comment 3 WebKit Commit Bot 2017-08-18 16:26:45 PDT
All reviewed patches have been landed.  Closing bug.
Comment 4 Radar WebKit Bug Importer 2017-08-18 16:27:29 PDT
<rdar://problem/33972756>
Comment 5 Jonathan Bedard 2017-08-21 17:13:04 PDT
Reopening to attach new patch.
Comment 6 Jonathan Bedard 2017-08-21 17:13:05 PDT
Created attachment 318700 [details]
Patch
Comment 7 Jonathan Bedard 2017-08-21 17:43:55 PDT
Created attachment 318709 [details]
Patch
Comment 8 David Kilzer (:ddkilzer) 2017-08-21 19:18:29 PDT
Comment on attachment 318709 [details]
Patch

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

r=me

> Tools/Scripts/webkitpy/port/server_process.py:377
>          # read any remaining data on the pipes and return it.
>          if not killed:
> -            if self._use_win32_apis:
> +            if self._use_win32_apis and self._proc:
>                  self._wait_for_data_and_update_buffers_using_win32_apis(now)
> -            else:
> +            elif self._proc:
>                  self._wait_for_data_and_update_buffers_using_select(now, stopping=True)

Can you move the check for self._proc here?

        if not killed and self._proc:
Comment 9 Jonathan Bedard 2017-08-22 08:05:28 PDT
(In reply to David Kilzer (:ddkilzer) from comment #8)
> Comment on attachment 318709 [details]
> Patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=318709&action=review
> 
> r=me
> 
> > Tools/Scripts/webkitpy/port/server_process.py:377
> >          # read any remaining data on the pipes and return it.
> >          if not killed:
> > -            if self._use_win32_apis:
> > +            if self._use_win32_apis and self._proc:
> >                  self._wait_for_data_and_update_buffers_using_win32_apis(now)
> > -            else:
> > +            elif self._proc:
> >                  self._wait_for_data_and_update_buffers_using_select(now, stopping=True)
> 
> Can you move the check for self._proc here?
> 
>         if not killed and self._proc:

Good point. Making that change.
Comment 10 Jonathan Bedard 2017-08-22 08:05:42 PDT
Created attachment 318757 [details]
Patch for landing
Comment 11 WebKit Commit Bot 2017-08-22 08:46:33 PDT
Comment on attachment 318757 [details]
Patch for landing

Clearing flags on attachment: 318757

Committed r221011: <http://trac.webkit.org/changeset/221011>
Comment 12 WebKit Commit Bot 2017-08-22 08:46:35 PDT
All reviewed patches have been landed.  Closing bug.