<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Sep 29, 2009, at 4:45 PM, John Thompson wrote:</div><br class="Apple-interchange-newline"><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>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> </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">John.Thompson.JTSoftware@gmail.com</a><br><br> _______________________________________________<br>cfe-dev mailing list<br><a href="mailto:cfe-dev@cs.uiuc.edu">cfe-dev@cs.uiuc.edu</a><br>http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev<br></blockquote></div><br></body></html>