<div>Thanks for the pointer, Chris.</div>
<div> </div>
<div>I've enclosed my attempt to convert address-space-field1.c to using FileCheck.</div>
<div> </div>
<div>It seems to work on both Windows and Linux x86 32-bit, though perhaps I included too much of the output file in the checks.</div>
<div> </div>
<div>If this is okay, shall I do it on the other failing tests?  Or should I ping the individual test owners first?</div>
<div> </div>
<div>-John<br><br></div>
<div class="gmail_quote">On Tue, Sep 29, 2009 at 4:49 PM, Chris Lattner <span dir="ltr"><<a href="mailto:clattner@apple.com">clattner@apple.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 style="WORD-WRAP: break-word"><br>
<div>
<div class="im">
<div>On Sep 29, 2009, at 4:45 PM, John Thompson wrote:</div><br>
<blockquote type="cite">
<div>Switching to the gnuwin32 grep solved a bunch of the problems I had way back when with the test on Windows, but there still seem to be a few issues left.</div>
<div> </div>
<div>The first one I encounter in the tests is in address-space-field1.c.</div>
<div> </div>
<div>It uses something like:  "grep" "addrspace\(1\)" ...</div>
<div> </div>
<div>but either Windows or the gnuwin32 grep is choking on the '\''s</div></blockquote>
<div><br></div></div>Hi John,</div>
<div><br></div>
<div>It would be best to convert this test to FileCheck.  Among other things it will be faster to run and more portable.</div>
<div><br></div>
<div>-Chris</div>
<div><br></div>
<div>
<blockquote type="cite">
<div class="im">
<div> </div>
<div>The test passes if I change it to:</div>
<div> </div>
<div>// RUN: grep addrspace(1) %t | count 9 &&<br>// RUN: grep addrspace(2) %t | count 9</div>
<div> </div>
<div>So, the question is, how to handle it?</div>
<div> </div>
<div>Could the python script be given smarts to convert it per platform></div>
<div> </div>
<div>It seems that using preprocessor conditionals in the actual test file won't work.</div>
<div> </div>
<div>Or maybe some sort of conditional in the annoation language, i.e.:</div>
<div> </div>
<div>// RUNWIN32: ...</div>
<div> </div>
<div>or</div>
<div> </div>
<div>// IF WIN32 RUN: ...</div>
<div> </div>
<div>-John</div>
<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>_______________________________________________<br>cfe-dev mailing list<br>
<a href="mailto:cfe-dev@cs.uiuc.edu" target="_blank">cfe-dev@cs.uiuc.edu</a><br><a href="http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev</a><br></blockquote>
</div><br></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>