[PATCH] [test-suite] Fix failure to capture stderr in *.out-simple's

Tom Stellard tom at stellard.net
Wed Dec 17 12:13:06 PST 2014


On Fri, Dec 12, 2014 at 10:39:48PM +0000, Daniel Sanders wrote:
> A very late ping. I'd completely forgotten about this patch but I just ran into the problem again while testing LLVM 3.5.1 (cross-compilation from x86_64 to mips) with clean test-suite sources.

How critical is this fix for 3.5.1?  Will the test-suite fail on new Debian
for everyone, or is it just a Mips issue?

-Tom

> ________________________________
> From: Daniel Sanders
> Sent: 15 August 2014 15:24
> To: llvm-commits at cs.uiuc.edu
> Subject: [PATCH] [test-suite] Fix failure to capture stderr in *.out-simple's
> 
> Hi,
> 
> I've just dist-upgraded one of my Debian machines and I'm now finding that a large number of tests are failing the reference check on that machine. All the missing lines appear in test.log so it seems that stderr is no longer redirected to the *.out-simple along with stdout. This patch fixes this by redirecting stderr to stdout on the perf command.
> 
> Daniel Sanders
> Leading Software Design Engineer, MIPS Processor IP
> Imagination Technologies Limited
> www.imgtec.com<http://www.imgtec.com/>
> 

> Index: tools/timeit.sh
> ===================================================================
> --- tools/timeit.sh	(revision 213378)
> +++ tools/timeit.sh	(working copy)
> @@ -26,7 +26,7 @@
>  	shift 2
>  done
>  
> -perf stat -o stats $@ < $INPUT > $OUTPUT
> +perf stat -o stats $@ < $INPUT > $OUTPUT 2>&1
>  
>  EXITCODE=$?
>  




More information about the llvm-commits mailing list