[cfe-dev] Need Python help in TestRunner.py
daniel at zuster.org
Sat Oct 24 15:49:17 CDT 2009
On Thu, Oct 15, 2009 at 3:09 PM, John Thompson
<john.thompson.jtsoftware at gmail.com> wrote:
> Here's a wierd one regarding running the test/Frontend/ast-main.c test on
> Windows. The "diff" utility seems to be crashing when run from the test
> scripts in . Running the same command line from the command shell doesn't
> diff C:\Tools\llvm\tools\clang\test\Frontend\Output\ast-main.c.tmp1.ll
> By default, on my system, I'm using the diff from the gnuwin32 utils. I
> also substituted the msys diff, but it crashes also, but only when run under
> the test scripts.
> Are you seeing this too?
Nope, I've never seen diff crashing.
> Any thoughts?
No clue. :)
One major difference about stuff run under the test script is it tries
to limit the things that are in the environment. Maybe that makes your
diff unhappy somehow?
> On Tue, Oct 13, 2009 at 7:51 AM, Daniel Dunbar <daniel at zuster.org> wrote:
>> Hey John,
>> I'll try to take a look at this soon. File a bug or email me if I seem
>> to forget. :)
>> - Daniel
>> On Tue, Oct 13, 2009 at 5:19 PM, John Thompson
>> <john.thompson.jtsoftware at gmail.com> wrote:
>> > In running the test Driver/ast.c on Windows:
>> > 2> File "C:\Tools\llvm\utils\lit\TestRunner.py", line 79, in
>> > executeShCmd
>> > 2> raise NotImplementedError,"Unsupported redirect: %r" % (r,)
>> > 2>NotImplementedError: Unsupported redirect: (('>>',),
>> > 'C:\\Tools\\llvm\\tools\\clang\\test\\Driver\\Output\\ast.c.tmp')
>> > It appears that '>>' is not one of the conditions in the if/else series,
>> > and
>> > I don't know Python well enough to fix it.
>> > My guess of adding:
>> > elif r == ('>>',):
>> > redirects = [r, 'a', None]
>> > resulted in the redirected output being put at the front of the output
>> > file.
>> > So if this is a quick fix for someone, I'd appreciate the help.
>> > -John
>> > --
>> > John Thompson
>> > John.Thompson.JTSoftware at gmail.com
>> > _______________________________________________
>> > cfe-dev mailing list
>> > cfe-dev at cs.uiuc.edu
>> > http://lists.cs.uiuc.edu/mailman/listinfo/cfe-dev
> John Thompson
> John.Thompson.JTSoftware at gmail.com
> cfe-dev mailing list
> cfe-dev at cs.uiuc.edu
More information about the cfe-dev