<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>167197</bug_id>
          
          <creation_ts>2017-01-19 04:35:31 -0800</creation_ts>
          <short_desc>[Win] Test output results should not be written twice.</short_desc>
          <delta_ts>2017-01-20 10:17:11 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Tools / Tests</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Per Arne Vollan">pvollan</reporter>
          <assigned_to name="Per Arne Vollan">pvollan</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>lforschler</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1268085</commentid>
    <comment_count>0</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-01-19 04:35:31 -0800</bug_when>
    <thetext>Test results indicate that test output is sometimes written twice for the same test, causing flakiness.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1268087</commentid>
    <comment_count>1</comment_count>
      <attachid>299243</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-01-19 04:42:05 -0800</bug_when>
    <thetext>Created attachment 299243
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1268441</commentid>
    <comment_count>2</comment_count>
      <attachid>299243</attachid>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2017-01-20 09:26:46 -0800</bug_when>
    <thetext>Comment on attachment 299243
Patch

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

r=me

&gt; Tools/DumpRenderTree/win/DumpRenderTree.cpp:685
&gt; +

It would be good to understand why this happens. Do we need a similar protection in macOS and other platforms? Or does Windows call dump() in more places?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1268444</commentid>
    <comment_count>3</comment_count>
      <attachid>299243</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-01-20 09:51:35 -0800</bug_when>
    <thetext>Comment on attachment 299243
Patch

Clearing flags on attachment: 299243

Committed r210965: &lt;http://trac.webkit.org/changeset/210965&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1268445</commentid>
    <comment_count>4</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2017-01-20 09:51:38 -0800</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1268457</commentid>
    <comment_count>5</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2017-01-20 10:17:11 -0800</bug_when>
    <thetext>(In reply to comment #2)
&gt; Comment on attachment 299243 [details]
&gt; Patch
&gt; 
&gt; View in context:
&gt; https://bugs.webkit.org/attachment.cgi?id=299243&amp;action=review
&gt; 
&gt; r=me
&gt; 
&gt; &gt; Tools/DumpRenderTree/win/DumpRenderTree.cpp:685
&gt; &gt; +
&gt; 
&gt; It would be good to understand why this happens. Do we need a similar
&gt; protection in macOS and other platforms? Or does Windows call dump() in more
&gt; places?

macOS will not process messages after dump() is called, while Windows will process a few messages before receiving the WM_QUIT message. This opens up for dump() to be called again on Windows. This might happen if the test performs a reload, and calls notifyDone() a second time.

Thanks for reviewing!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>299243</attachid>
            <date>2017-01-19 04:42:05 -0800</date>
            <delta_ts>2017-01-20 09:51:35 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-167197-20170119044013.patch</filename>
            <type>text/plain</type>
            <size>1957</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IFRvb2xzL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBUb29scy9DaGFuZ2VMb2cJKHJl
dmlzaW9uIDIxMDkyMikKKysrIFRvb2xzL0NoYW5nZUxvZwkod29ya2luZyBjb3B5KQpAQCAtMSwz
ICsxLDE3IEBACisyMDE3LTAxLTE5ICBQZXIgQXJuZSBWb2xsYW4gIDxwdm9sbGFuQGFwcGxlLmNv
bT4KKworICAgICAgICBbV2luXSBUZXN0IG91dHB1dCByZXN1bHRzIHNob3VsZCBub3QgYmUgd3Jp
dHRlbiB0d2ljZS4KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hvd19idWcuY2dp
P2lkPTE2NzE5NworCisgICAgICAgIFJldmlld2VkIGJ5IE5PQk9EWSAoT09QUyEpLgorCisgICAg
ICAgIFByZXZlbnQgdGVzdCBvdXRwdXQgZnJvbSBiZWluZyB3cml0dGVuIHR3aWNlIGJ5IHJldHVy
bmluZyBlYXJseSBmcm9tCisgICAgICAgIHRoZSBkdW1wKCkgZnVuY3Rpb24sIGlmIGl0IGFscmVh
ZHkgaGFzIGJlZW4gY2FsbGVkLgorICAgICAgICBUaGlzIHBhdGNoIGFsc28gYWRkcyBhIG1pc3Np
bmcgbmV3bGluZSB0byBhIHRlc3Qgb3V0cHV0IGxpbmUuIAorICAgICAgICAKKyAgICAgICAgKiBE
dW1wUmVuZGVyVHJlZS93aW4vRHVtcFJlbmRlclRyZWU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7CiAg
ICAgICAgIH0gZWxzZQotICAgICAgICAgICAgZnByaW50Zih0ZXN0UmVzdWx0LCAiRVJST1I6IG5p
bCByZXN1bHQgZnJvbSAlcyIsIDo6Z1Rlc3RSdW5uZXItPmR1bXBBc1RleHQoKSA/ICJJRE9NRWxl
bWVudDo6aW5uZXJUZXh0IiA6ICJJRnJhbWVWaWV3UHJpdmF0ZTo6cmVuZGVyVHJlZUFzRXh0ZXJu
YWxSZXByZXNlbnRhdGlvbiIpOworICAgICAgICAgICAgZnByaW50Zih0ZXN0UmVzdWx0LCAiRVJS
T1I6IG5pbCByZXN1bHQgZnJvbSAlc1xuIiwgOjpnVGVzdFJ1bm5lci0+ZHVtcEFzVGV4dCgpID8g
IklET01FbGVtZW50Ojppbm5lclRleHQiIDogIklGcmFtZVZpZXdQcml2YXRlOjpyZW5kZXJUcmVl
QXNFeHRlcm5hbFJlcHJlc2VudGF0aW9uIik7CiAKICAgICAgICAgaWYgKHByaW50U2VwYXJhdG9y
cykKICAgICAgICAgICAgIGZwdXRzKCIjRU9GXG4iLCB0ZXN0UmVzdWx0KTsgLy8gdGVybWluYXRl
IHRoZSBjb250ZW50IGJsb2NrCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>