ygao added a comment.

In llvm/utils/lit/lit/TestRunner.py line#202 inside function executeShCmd(), 
the test is spawned by
subprocess.Popen(command, ..., stdout = subprocess.PIPE, stderr = 
subprocess.PIPE, ...)
And the test passes. I can verify with a small python script doing just a 
subprocess.Popen.

If the test is spawned with stdout = None instead, the test will crash as 
expected.

I could not find a way to trick TestRunner into leaving stdout as None. Is 
there supposed to be
a command-line option to lit? Or maybe a special redirection mark on the RUN 
line? Maybe a lit
expert can help me here.


http://reviews.llvm.org/D15705



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to