<div>Daniel,</div>
<div> </div>
<div>I did some playing around with message-length.c, and I think the '\r''s are confusing FileCheck.  I think it's the regex function, which is seeing them, because the file is opened in binary mode.<br>
</div>
<div>This seems to be the easy fix:</div>
<div> </div>
<div>Index: test/Misc/message-length.c<br>===================================================================<br>--- test/Misc/message-length.c (revision 84858)<br>+++ test/Misc/message-length.c (working copy)<br>@@ -29,4 +29,4 @@<br>
 <br> <br> // CHECK: FILE:23:78<br>-// CHECK: {{^  ...// some long comment text and a brace, eh {} $}}<br>+// CHECK: {{^  ...// some long comment text and a brace, eh {} .$}}<br></div>
<div>I tried to match things with '\r' in it, but couldn't get it to work.  Alternatively, we could mess with FileCheck, but I was afraid to.  It uses the MemoryBuffer function to read the file, so it's hard to chang the open mode there.</div>

<div> </div>
<div>-John<br> </div>
<div class="gmail_quote">On Wed, Oct 21, 2009 at 12:58 PM, John Thompson <span dir="ltr"><<a href="mailto:john.thompson.jtsoftware@gmail.com">john.thompson.jtsoftware@gmail.com</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">Nudge (1 of 3) 
<div>
<div></div>
<div class="h5"><br><br>
<div class="gmail_quote">On Mon, Oct 19, 2009 at 8:56 AM, John Thompson <span dir="ltr"><<a href="mailto:john.thompson.jtsoftware@gmail.com" target="_blank">john.thompson.jtsoftware@gmail.com</a>></span> wrote:<br>

<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">
<div>Daniel,</div>
<div> </div>
<div>After updating, I noticed this test newly failing on Windows:</div>
<div> </div>
<div>1>********************<br>1>FAIL: Clang::Misc/message-length.c (728 of 1688)<br>1>******************** TEST 'Clang::Misc/message-length.c' FAILED ********************<br>1>Script:<br>1>--<br>1>C:/Tools/llvm/bin/Debug\clang.EXE -fsyntax-only -fmessage-length=72 C:\Tools\llvm\tools\clang\test\Misc\message-length.c 2>&1 | FileCheck -strict-whitespace C:\Tools\llvm\tools\clang\test\Misc\message-length.c <br>
1>C:/Tools/llvm/bin/Debug\clang.EXE -fsyntax-only -fmessage-length=1 C:\Tools\llvm\tools\clang\test\Misc\message-length.c<br>1>--<br>1>Exit Code: 1<br>1>Command Output (stdout):<br>1>--<br>1>Command 0: "C:/Tools/llvm/bin/Debug\clang.EXE" "-fsyntax-only" "-fmessage-length=72" "C:\Tools\llvm\tools\clang\test\Misc\message-length.c"<br>
1>Command 0 Result: 0<br>1>Command 0 Output:<br>1>Command 0 Stderr:<br>1>Command 1: "FileCheck" "-strict-whitespace" "C:\Tools\llvm\tools\clang\test\Misc\message-length.c"<br>1>Command 1 Result: 1<br>
1>Command 1 Output:<br>1>Command 1 Stderr:<br>1>C:\Tools\llvm\tools\clang\test\Misc\message-length.c:32:67: error: expected string not found in input<br>1>// CHECK: {{^  ...// some long comment text and a brace, eh {} $}}<br>
1>                                                                  ^<br>1><stdin>:18:11: note: scanning from here<br>1>FILE:23:78: warning: expected 'ON' or 'OFF' or 'DEFAULT' in pragma<br>
1>          ^<br>1>--<br>1>Command Output (stderr):<br>1>--<br>1>--<br> </div>
<div>-John<br clear="all"></div><font color="#888888">
<div></div><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com" target="_blank">John.Thompson.JTSoftware@gmail.com</a><br><br></font></blockquote></div><br><br clear="all">
<div></div><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com" target="_blank">John.Thompson.JTSoftware@gmail.com</a><br><br></div></div></blockquote></div><br><br clear="all">
<div></div><br>-- <br>John Thompson<br><a href="mailto:John.Thompson.JTSoftware@gmail.com">John.Thompson.JTSoftware@gmail.com</a><br><br>