<div>Daniel,</div>
<div> </div>
<div>I'm afraid the result of this change is that instead of appending to the file, it overwrites the beginning of the file.  This is the result in ast.c.tmp (on Windows):</div>
<div> </div>
<div>END<br>put, "C:\Tools\llvm\tools\clang\test\Driver\ast.c", c<br>1: preprocessor, {0}, cpp-output<br>2: compiler, {1}, ast<br></div>
<div>Compared to Linux:</div>
<div> </div>
<div>0: input, "/home/john/llvm/tools/clang/test/Driver/Output/ast.c.tmp.ast", ast<br>1: compiler, {0}, assembler<br>2: assembler, {1}, object<br>END<br></div>
<div>-John<br><br></div>
<div class="gmail_quote">On Sat, Oct 24, 2009 at 12:41 PM, Daniel Dunbar <span dir="ltr"><<a href="mailto:daniel@zuster.org">daniel@zuster.org</a>></span> wrote:<br>
<blockquote style="BORDER-LEFT: #ccc 1px solid; MARGIN: 0px 0px 0px 0.8ex; PADDING-LEFT: 1ex" class="gmail_quote">On Tue, Oct 13, 2009 at 7:19 AM, John Thompson<br>
<div class="im"><<a href="mailto:john.thompson.jtsoftware@gmail.com">john.thompson.jtsoftware@gmail.com</a>> wrote:<br></div>
<div class="im">> In running the test Driver/ast.c on Windows:<br>><br>> 2>  File "C:\Tools\llvm\utils\lit\TestRunner.py", line 79, in executeShCmd<br>> 2>    raise NotImplementedError,"Unsupported redirect: %r" % (r,)<br>
> 2>NotImplementedError: Unsupported redirect: (('>>',),<br>> 'C:\\Tools\\llvm\\tools\\clang\\test\\Driver\\Output\\ast.c.tmp')<br>> It appears that '>>' is not one of the conditions in the if/else series, and<br>
> I don't know Python well enough to fix it.<br>><br>> My guess of adding:<br>><br>>             elif r[0] == ('>>',):<br>>                 redirects[1] = [r[1], 'a', None]<br><br>
</div>Looks like this should work, to me. I checked it on Darwin using<br>internal-execution of the test scripts and checked it in. Let me know<br>if it seems not to work on Windows.<br><font color="#888888"><br> - Daniel<br>
</font>
<div class="im"><br>> resulted in the redirected output being put at the front of the output file.<br>> So if this is a quick fix for someone, I'd appreciate the help.<br><br clear="all"><br>-- <br>John Thompson<br>
<a href="mailto:John.Thompson.JTSoftware@gmail.com">John.Thompson.JTSoftware@gmail.com</a><br><br></div></blockquote></div>