[PATCH] D15705: Adding a scripted test for PR25717

Yunzhong Gao via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 5 14:39:32 PST 2016


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





More information about the cfe-commits mailing list