[llvm] r335764 - [ThinLTO] Modify test to help diagnose bot failures

Teresa Johnson via llvm-commits llvm-commits at lists.llvm.org
Wed Jun 27 11:36:54 PDT 2018


Author: tejohnson
Date: Wed Jun 27 11:36:53 2018
New Revision: 335764

URL: http://llvm.org/viewvc/llvm-project?rev=335764&view=rev
Log:
[ThinLTO] Modify test to help diagnose bot failures

I am getting bot failures from r335760 that are difficult to diagnose
since the stderr is getting redirected to FileCheck. Save and dump the
debug output to stderr to help debug the issue.

Modified:
    llvm/trunk/test/ThinLTO/X86/deadstrip.ll

Modified: llvm/trunk/test/ThinLTO/X86/deadstrip.ll
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/ThinLTO/X86/deadstrip.ll?rev=335764&r1=335763&r2=335764&view=diff
==============================================================================
--- llvm/trunk/test/ThinLTO/X86/deadstrip.ll (original)
+++ llvm/trunk/test/ThinLTO/X86/deadstrip.ll Wed Jun 27 11:36:53 2018
@@ -23,7 +23,9 @@
 ; RUN:   -r %t2.bc,_dead_func,l \
 ; RUN:   -r %t2.bc,_another_dead_func,pl \
 ; RUN:   -thinlto-threads=1 \
-; RUN:	 -debug-only=function-import 2>&1 | FileCheck %s --check-prefix=DEBUG
+; RUN:	 -debug-only=function-import >%t2.out.debug 2>&1
+; RUN: cat %t2.out.debug
+; RUN: cat %t2.out.debug | FileCheck %s --check-prefix=DEBUG
 ; RUN: llvm-dis < %t.out.1.3.import.bc | FileCheck %s --check-prefix=LTO2
 ; RUN: llvm-dis < %t.out.2.3.import.bc | FileCheck %s --check-prefix=LTO2-CHECK2
 ; RUN: llvm-nm %t.out.1 | FileCheck %s --check-prefix=CHECK2-NM




More information about the llvm-commits mailing list