<div dir="auto">Can't you just put gnuwin rm on your bot? Our Windows bots are happy with the test, and having to support an rm without wildcard support seems pretty strange. (<a href="Https://is.gd/chromeclang">Https://is.gd/chromeclang</a> -> tools -> gnuwin-6.zip are the executables our bot uses to run llvm tests)</div><div class="gmail_extra"><br><div class="gmail_quote">On Feb 24, 2017 8:13 PM, "Yung, Douglas via cfe-commits" <<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Nico,<br>
<br>
The test you added is causing a failure on the PS4 Windows bot. The root of the cause is that the Windows version of rm does not accept wildcards unfortunately. To fix make it work on Windows, you likely need to specify exactly what files/directories you want to delete without using a wildcard:<br>
<br>
<a href="http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/6030" rel="noreferrer" target="_blank">http://lab.llvm.org:8011/<wbr>builders/llvm-clang-lld-x86_<wbr>64-scei-ps4-windows10pro-fast/<wbr>builds/6030</a>:<br>
<br>
$ "rm" "C:\Buildbot\Slave\llvm-clang-<wbr>lld-x86_64-scei-ps4-<wbr>windows10pro-fast\llvm.obj\<wbr>tools\clang\test\Format\<wbr>Output/*"<br>
# command stderr:<br>
rm: cannot remove `C:\\Buildbot\\Slave\\llvm-<wbr>clang-lld-x86_64-scei-ps4-<wbr>windows10pro-fast\\llvm.obj\\<wbr>tools\\clang\\test\\Format\\<wbr>Output/*': Invalid argument<br>
<br>
<a href="http://lab.llvm.org:8011/builders/llvm-clang-lld-x86_64-scei-ps4-windows10pro-fast/builds/6031" rel="noreferrer" target="_blank">http://lab.llvm.org:8011/<wbr>builders/llvm-clang-lld-x86_<wbr>64-scei-ps4-windows10pro-fast/<wbr>builds/6031</a>:<br>
<br>
$ "rm" "C:\Buildbot\Slave\llvm-clang-<wbr>lld-x86_64-scei-ps4-<wbr>windows10pro-fast\llvm.obj\<wbr>tools\clang\test\Format\<wbr>Output/inplace*"<br>
# command stderr:<br>
rm: cannot remove `C:\\Buildbot\\Slave\\llvm-<wbr>clang-lld-x86_64-scei-ps4-<wbr>windows10pro-fast\\llvm.obj\\<wbr>tools\\clang\\test\\Format\\<wbr>Output/inplace*': Invalid argument<br>
<br>
Can you fix the test?<br>
<br>
Douglas Yung<br>
<br>
> -----Original Message-----<br>
> From: cfe-commits [mailto:<a href="mailto:cfe-commits-bounces@lists.llvm.org">cfe-commits-bounces@<wbr>lists.llvm.org</a>] On Behalf Of<br>
> Nico Weber via cfe-commits<br>
> Sent: Friday, February 24, 2017 13:02<br>
> To: <a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
> Subject: r296171 - Try to unbreak tests after r296166<br>
><br>
> Author: nico<br>
> Date: Fri Feb 24 15:01:43 2017<br>
> New Revision: 296171<br>
><br>
> URL: <a href="http://llvm.org/viewvc/llvm-project?rev=296171&view=rev" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-<wbr>project?rev=296171&view=rev</a><br>
> Log:<br>
> Try to unbreak tests after r296166<br>
><br>
> Looks like %T isn't per-test but per-test-directory, and the rm was deleting<br>
> temp files written by other tests in test/Format.  Limit the rm's scope a bit.<br>
><br>
> Modified:<br>
>     cfe/trunk/test/Format/inplace.<wbr>cpp<br>
><br>
> Modified: cfe/trunk/test/Format/inplace.<wbr>cpp<br>
> URL: <a href="http://llvm.org/viewvc/llvm-" rel="noreferrer" target="_blank">http://llvm.org/viewvc/llvm-</a><br>
> project/cfe/trunk/test/Format/<wbr>inplace.cpp?rev=296171&r1=<wbr>296170&r2=296171&view=<br>
> diff<br>
> ==============================<wbr>==============================<wbr>==================<br>
> --- cfe/trunk/test/Format/inplace.<wbr>cpp (original)<br>
> +++ cfe/trunk/test/Format/inplace.<wbr>cpp Fri Feb 24 15:01:43 2017<br>
> @@ -1,6 +1,6 @@<br>
>  // Regression test to check that clang-format does not leave behind temporary<br>
> // files on Windows when doing in-place formatting.<br>
> -// RUN: rm %T/*<br>
> +// RUN: rm %T/inplace*<br>
>  // RUN: cp %s %T/inplace.cpp<br>
>  // RUN: clang-format -style=LLVM -i %T/inplace.cpp  // RUN: ls %T ><br>
> %T/files.txt<br>
><br>
><br>
> ______________________________<wbr>_________________<br>
> cfe-commits mailing list<br>
> <a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
> <a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-commits</a><br>
______________________________<wbr>_________________<br>
cfe-commits mailing list<br>
<a href="mailto:cfe-commits@lists.llvm.org">cfe-commits@lists.llvm.org</a><br>
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits" rel="noreferrer" target="_blank">http://lists.llvm.org/cgi-bin/<wbr>mailman/listinfo/cfe-commits</a><br>
</blockquote></div></div>