<?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>95115</bug_id>
          
          <creation_ts>2012-08-27 12:11:28 -0700</creation_ts>
          <short_desc>[chromium] Fix exit code status logic in run-chromium-webkit-unit-tests</short_desc>
          <delta_ts>2012-08-27 12:23:58 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (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="James Robinson">jamesr</reporter>
          <assigned_to name="James Robinson">jamesr</assigned_to>
          <cc>abarth</cc>
    
    <cc>dbates</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>705498</commentid>
    <comment_count>0</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2012-08-27 12:11:28 -0700</bug_when>
    <thetext>[chromium] Fix exit code status logic in run-chromium-webkit-unit-tests</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>705499</commentid>
    <comment_count>1</comment_count>
      <attachid>160770</attachid>
    <who name="James Robinson">jamesr</who>
    <bug_when>2012-08-27 12:12:07 -0700</bug_when>
    <thetext>Created attachment 160770
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>705501</commentid>
    <comment_count>2</comment_count>
    <who name="Adam Barth">abarth</who>
    <bug_when>2012-08-27 12:12:49 -0700</bug_when>
    <thetext>Hum...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>705502</commentid>
    <comment_count>3</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2012-08-27 12:15:55 -0700</bug_when>
    <thetext>Committed r126784: &lt;http://trac.webkit.org/changeset/126784&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>705505</commentid>
    <comment_count>4</comment_count>
      <attachid>160770</attachid>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2012-08-27 12:18:50 -0700</bug_when>
    <thetext>Comment on attachment 160770
Patch

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

&gt; Tools/Scripts/run-chromium-webkit-unit-tests:40
&gt;  # perl&apos;s &quot;system&quot; function&apos;s return value has to be right shifted by 8 to get the program&apos;s exit code.

Nit: Please remove this comment since we&apos;re using the convenience function exitStatus().

&gt; Tools/Scripts/run-chromium-webkit-unit-tests:41
&gt; +exit exitStatus(system ($pathToBinary, @ARGV));

Nit: There is an extraneous space after &quot;system&quot;. I know that this space was in the original code. I suggest we remove it when using C-like functional notation.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>705508</commentid>
    <comment_count>5</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2012-08-27 12:20:32 -0700</bug_when>
    <thetext>(In reply to comment #4)
&gt; (From update of attachment 160770 [details])
&gt; View in context: https://bugs.webkit.org/attachment.cgi?id=160770&amp;action=review
&gt; 
&gt; &gt; Tools/Scripts/run-chromium-webkit-unit-tests:40
&gt; &gt;  # perl&apos;s &quot;system&quot; function&apos;s return value has to be right shifted by 8 to get the program&apos;s exit code.
&gt; 
&gt; Nit: Please remove this comment since we&apos;re using the convenience function exitStatus().
&gt; 

Done

&gt; &gt; Tools/Scripts/run-chromium-webkit-unit-tests:41
&gt; &gt; +exit exitStatus(system ($pathToBinary, @ARGV));
&gt; 
&gt; Nit: There is an extraneous space after &quot;system&quot;. I know that this space was in the original code. I suggest we remove it when using C-like functional notation.

Not a bad idea. Do we have any sort of perl style guidelines/recommendations?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>705512</commentid>
    <comment_count>6</comment_count>
    <who name="Daniel Bates">dbates</who>
    <bug_when>2012-08-27 12:23:58 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; &gt; &gt; Tools/Scripts/run-chromium-webkit-unit-tests:41
&gt; &gt; &gt; +exit exitStatus(system ($pathToBinary, @ARGV));
&gt; &gt; 
&gt; &gt; Nit: There is an extraneous space after &quot;system&quot;. I know that this space was in the original code. I suggest we remove it when using C-like functional notation.
&gt; 
&gt; Not a bad idea. Do we have any sort of perl style guidelines/recommendations?

No, we don&apos;t have a written style guide explicitly for our Perl code. We tend to follow the WebKit Code Style Guidelines.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>160770</attachid>
            <date>2012-08-27 12:12:07 -0700</date>
            <delta_ts>2012-08-27 12:18:50 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-95115-20120827121200.patch</filename>
            <type>text/plain</type>
            <size>1484</size>
            <attacher name="James Robinson">jamesr</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTI2Nzc2CmRpZmYgLS1naXQgYS9Ub29scy9DaGFuZ2VMb2cg
Yi9Ub29scy9DaGFuZ2VMb2cKaW5kZXggOGQ3MmQzODIxYTI1M2M5MmUwMzMzNmViMmM5MTdjMzY2
NjcxZTE1Mi4uMzQ1ZTk0ZmJlNzEzZTI1MTgyMWQxOTY0MDNmZjRkYTcxMWExNDU4ZiAxMDA2NDQK
LS0tIGEvVG9vbHMvQ2hhbmdlTG9nCisrKyBiL1Rvb2xzL0NoYW5nZUxvZwpAQCAtMSwzICsxLDE1
IEBACisyMDEyLTA4LTI3ICBKYW1lcyBSb2JpbnNvbiAgPGphbWVzckBjaHJvbWl1bS5vcmc+C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zIs
OSArMzIsMTAgQEAgdXNlIEZpbGU6OlNwZWM7CiB1c2UgRmluZEJpbjsKIHVzZSBsaWIgJEZpbmRC
aW46OkJpbjsKIHVzZSB3ZWJraXRkaXJzOwordXNlIFZDU1V0aWxzOwogCiBwdXNoKEBBUkdWLCAi
LS1jaHJvbWl1bSIpOwogc2V0Q29uZmlndXJhdGlvbigpOwogbXkgJHBhdGhUb0JpbmFyeSA9IHBy
b2R1Y3REaXIoKSAuICIvd2Via2l0X3VuaXRfdGVzdHMiOwogIyBwZXJsJ3MgInN5c3RlbSIgZnVu
Y3Rpb24ncyByZXR1cm4gdmFsdWUgaGFzIHRvIGJlIHJpZ2h0IHNoaWZ0ZWQgYnkgOCB0byBnZXQg
dGhlIHByb2dyYW0ncyBleGl0IGNvZGUuCi1leGl0IHN5c3RlbSAoJHBhdGhUb0JpbmFyeSwgQEFS
R1YpID4+IDg7CitleGl0IGV4aXRTdGF0dXMoc3lzdGVtICgkcGF0aFRvQmluYXJ5LCBAQVJHVikp
Owo=
</data>
<flag name="review"
          id="171396"
          type_id="1"
          status="+"
          setter="abarth"
    />
          </attachment>
      

    </bug>

</bugzilla>