<?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>236595</bug_id>
          
          <creation_ts>2022-02-14 09:20:43 -0800</creation_ts>
          <short_desc>testapi should handle a missing testapiScripts directory cleaner</short_desc>
          <delta_ts>2022-02-21 09:21:18 -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>New Bugs</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Keith Miller">keith_miller</reporter>
          <assigned_to name="Keith Miller">keith_miller</assigned_to>
          <cc>ews-watchlist</cc>
    
    <cc>mark.lam</cc>
    
    <cc>msaboff</cc>
    
    <cc>saam</cc>
    
    <cc>tzagallo</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1841278</commentid>
    <comment_count>0</comment_count>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2022-02-14 09:20:43 -0800</bug_when>
    <thetext>testapi should handle a missing testapiScripts directory cleaner</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1841280</commentid>
    <comment_count>1</comment_count>
      <attachid>451912</attachid>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2022-02-14 09:21:33 -0800</bug_when>
    <thetext>Created attachment 451912
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1841299</commentid>
    <comment_count>2</comment_count>
      <attachid>451912</attachid>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2022-02-14 09:56:22 -0800</bug_when>
    <thetext>Comment on attachment 451912
Patch

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

r=me

&gt; Source/JavaScriptCore/API/tests/testapi.mm:2839
&gt; +    if (![resolvePathToScripts() checkResourceIsReachableAndReturnError:nil]) {
&gt; +        NSLog(@&quot;File URL to testapiScripts: %@&quot;, resolvePathToScripts());
&gt; +        checkResult(@&quot;File URL to `testapiScripts` isn&apos;t reachable is the directory in place?&quot;, false);
&gt; +        return;
&gt; +    }
&gt; +

How about always showing 

NSLog(@&quot;File URL to testapiScripts: %@&quot;, resolvePathToScripts());

and doing,

checkResult(@&quot;File URL to `testapiScripts` isn&apos;t reachable is the directory in place?&quot;, [resolvePathToScripts() checkResourceIsReachableAndReturnError:nil]);</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1841318</commentid>
    <comment_count>3</comment_count>
      <attachid>451912</attachid>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2022-02-14 10:39:01 -0800</bug_when>
    <thetext>Comment on attachment 451912
Patch

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

&gt;&gt; Source/JavaScriptCore/API/tests/testapi.mm:2839
&gt;&gt; +
&gt; 
&gt; How about always showing 
&gt; 
&gt; NSLog(@&quot;File URL to testapiScripts: %@&quot;, resolvePathToScripts());
&gt; 
&gt; and doing,
&gt; 
&gt; checkResult(@&quot;File URL to `testapiScripts` isn&apos;t reachable is the directory in place?&quot;, [resolvePathToScripts() checkResourceIsReachableAndReturnError:nil]);

Ok, sounds good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1841320</commentid>
    <comment_count>4</comment_count>
      <attachid>451912</attachid>
    <who name="Keith Miller">keith_miller</who>
    <bug_when>2022-02-14 10:41:08 -0800</bug_when>
    <thetext>Comment on attachment 451912
Patch

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

&gt;&gt;&gt; Source/JavaScriptCore/API/tests/testapi.mm:2839
&gt;&gt;&gt; +
&gt;&gt; 
&gt;&gt; How about always showing 
&gt;&gt; 
&gt;&gt; NSLog(@&quot;File URL to testapiScripts: %@&quot;, resolvePathToScripts());
&gt;&gt; 
&gt;&gt; and doing,
&gt;&gt; 
&gt;&gt; checkResult(@&quot;File URL to `testapiScripts` isn&apos;t reachable is the directory in place?&quot;, [resolvePathToScripts() checkResourceIsReachableAndReturnError:nil]);
&gt; 
&gt; Ok, sounds good.

Do you think we should return after finding the file is missing or just continue in case the test doesn&apos;t rely on that directory?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1844233</commentid>
    <comment_count>5</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-02-21 09:21:18 -0800</bug_when>
    <thetext>&lt;rdar://problem/89239279&gt;</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>451912</attachid>
            <date>2022-02-14 09:21:33 -0800</date>
            <delta_ts>2022-02-14 09:56:22 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-236595-20220214122132.patch</filename>
            <type>text/plain</type>
            <size>1572</size>
            <attacher name="Keith Miller">keith_miller</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMjg5NzM3CmRpZmYgLS1naXQgYS9Tb3VyY2UvSmF2YVNjcmlw
dENvcmUvQ2hhbmdlTG9nIGIvU291cmNlL0phdmFTY3JpcHRDb3JlL0NoYW5nZUxvZwppbmRleCAw
YjhiNGQyZGJkYzZiOWZlOWJhZTE1NjY0ODUwMGRkNDYyZjg4NDMyLi5mNDRiMmQ1MDAwMGJhYTBj
NmVhNzVjNTZlZTExNWZhYjMzZWFiZTIwIDEwMDY0NA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0YXBpLm1tCisrKyBiL1NvdXJjZS9KYXZhU2NyaXB0
Q29yZS9BUEkvdGVzdHMvdGVzdGFwaS5tbQpAQCAtMjgzMSw2ICsyODMxLDEyIEBAIHZvaWQgdGVz
dE9iamVjdGl2ZUNBUEkoY29uc3QgY2hhciogZmlsdGVyKQogewogICAgIE5TTG9nKEAiVGVzdGlu
ZyBPYmplY3RpdmUtQyBBUEkiKTsKIAorICAgIGlmICghW3Jlc29sdmVQYXRoVG9TY3JpcHRzKCkg
Y2hlY2tSZXNvdXJjZUlzUmVhY2hhYmxlQW5kUmV0dXJuRXJyb3I6bmlsXSkgeworICAgICAgICBO
U0xvZyhAIkZpbGUgVVJMIHRvIHRlc3RhcGlTY3JpcHRzOiAlQCIsIHJlc29sdmVQYXRoVG9TY3Jp
cHRzKCkpOworICAgICAgICBjaGVja1Jlc3VsdChAIkZpbGUgVVJMIHRvIGB0ZXN0YXBpU2NyaXB0
c2AgaXNuJ3QgcmVhY2hhYmxlIGlzIHRoZSBkaXJlY3RvcnkgaW4gcGxhY2U/IiwgZmFsc2UpOwor
ICAgICAgICByZXR1cm47CisgICAgfQorCiAgICAgYXV0byBzaG91bGRSdW4gPSBbJl0gKGNvbnN0
IGNoYXIqIHRlc3QpIC0+IGJvb2wgewogICAgICAgICBpZiAoZmlsdGVyKQogICAgICAgICAgICAg
cmV0dXJuIHN0cmNhc2VzdHIodGVzdCwgZmlsdGVyKTsK
</data>
<flag name="review"
          id="478791"
          type_id="1"
          status="+"
          setter="ysuzuki"
    />
          </attachment>
      

    </bug>

</bugzilla>