<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Mar 29, 2016 at 1:03 PM, Vedant Kumar <span dir="ltr"><<a href="mailto:vsk@apple.com" target="_blank">vsk@apple.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex"><span class=""><br>
> On Mar 29, 2016, at 1:00 PM, Sean Silva <<a href="mailto:chisophugis@gmail.com">chisophugis@gmail.com</a>> wrote:<br>
><br>
><br>
><br>
> On Tue, Mar 29, 2016 at 12:55 PM, Vedant Kumar <<a href="mailto:vsk@apple.com">vsk@apple.com</a>> wrote:<br>
> Darwin is funny. I tried an empty string also, but the test failed :(.<br>
><br>
> Interesting. Are the quotes necessary? For the record, for PS4, both `"/"` (your patch), `/`, and `` (i.e. empty) work.<br>
<br>
</span>It actually fails (i.e, proceeds with the write) with and without the quotes.<br></blockquote><div><br></div><div>Sorry, maybe I should clarify. For my testing on PS4, this test works fine with either `"/"` (your patch), `/`, and `` (i.e. empty). Did you intend to say that `"/"` works (i.e. the test case passes) on Darwin? I'm not sure what to make of your statement "with and without the quotes".</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><br>
<br>
> That said, it's important the test is portable. I'll revert and try again if the Windows bots have issues.<br>
><br>
> I haven't tested a windows-targeting configuration (and don't know if we have a bot for that). The closest I have is windows-hosted targeting PS4.<br>
<br>
</span>Hm, it could be that the public Windows bots have never run check-profile. The old version of the code used chmod etc. without a `REQUIRES: shell` line.<br>
<br>
Should we add a require line to avoid breaking future Windows bots?<br></blockquote><div><br></div><div>Let's see if anything breaks first.</div><div><br></div><div>-- Sean Silva</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<span class=""><font color="#888888"><br>
vedant<br>
</font></span><div class=""><div class="h5"><br>
><br>
> -- Sean Silva<br>
><br>
><br>
> vedant<br>
><br>
> > On Mar 29, 2016, at 12:52 PM, Sean Silva <<a href="mailto:chisophugis@gmail.com">chisophugis@gmail.com</a>> wrote:<br>
> ><br>
> > An empty string also works for me and is probably more portable (i.e. `env LLVM_PROFILE_FILE= LLVM_PROFILE_VERBOSE_ERRORS=1 %run ...`). Does that work for you?<br>
> ><br>
> > -- Sean Silva<br>
> ><br>
> > On Tue, Mar 29, 2016 at 12:24 PM, Vedant Kumar via llvm-commits <<a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a>> wrote:<br>
> > Author: vedantk<br>
> > Date: Tue Mar 29 14:24:58 2016<br>
> > New Revision: 264773<br>
> ><br>
> > URL: <a href="http://llvm.org/viewvc/llvm-project?rev=264773&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project?rev=264773&view=rev</a><br>
> > Log:<br>
> > [profile] Make a test work if run by the super-user<br>
> ><br>
> > Modified:<br>
> > compiler-rt/trunk/test/profile/instrprof-error.c<br>
> ><br>
> > Modified: compiler-rt/trunk/test/profile/instrprof-error.c<br>
> > URL: <a href="http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/instrprof-error.c?rev=264773&r1=264772&r2=264773&view=diff" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/profile/instrprof-error.c?rev=264773&r1=264772&r2=264773&view=diff</a><br>
> > ==============================================================================<br>
> > --- compiler-rt/trunk/test/profile/instrprof-error.c (original)<br>
> > +++ compiler-rt/trunk/test/profile/instrprof-error.c Tue Mar 29 14:24:58 2016<br>
> > @@ -1,8 +1,5 @@<br>
> > // RUN: %clang_profgen -o %t -O3 %s<br>
> > -// RUN: touch %t.profraw<br>
> > -// RUN: chmod -w %t.profraw<br>
> > -// RUN: env LLVM_PROFILE_FILE=%t.profraw LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s<br>
> > -// RUN: chmod +w %t.profraw<br>
> > +// RUN: env LLVM_PROFILE_FILE="/" LLVM_PROFILE_VERBOSE_ERRORS=1 %run %t 1 2>&1 | FileCheck %s<br>
> ><br>
> > int main(int argc, const char *argv[]) {<br>
> > if (argc < 2)<br>
> ><br>
> ><br>
> > _______________________________________________<br>
> > llvm-commits mailing list<br>
> > <a href="mailto:llvm-commits@lists.llvm.org">llvm-commits@lists.llvm.org</a><br>
> > <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits</a><br>
> ><br>
><br>
><br>
<br>
</div></div></blockquote></div><br></div></div>