[llvm] r252020 - [llvm-symbolizer] Improve the test for missing input file.

Alexey Samsonov via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 3 16:30:19 PST 2015


Author: samsonov
Date: Tue Nov  3 18:30:19 2015
New Revision: 252020

URL: http://llvm.org/viewvc/llvm-project?rev=252020&view=rev
Log:
[llvm-symbolizer] Improve the test for missing input file.

Modified:
    llvm/trunk/test/DebugInfo/llvm-symbolizer.test

Modified: llvm/trunk/test/DebugInfo/llvm-symbolizer.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/llvm-symbolizer.test?rev=252020&r1=252019&r2=252020&view=diff
==============================================================================
--- llvm/trunk/test/DebugInfo/llvm-symbolizer.test (original)
+++ llvm/trunk/test/DebugInfo/llvm-symbolizer.test Tue Nov  3 18:30:19 2015
@@ -118,7 +118,9 @@ CHECK-NEXT: main
 CHECK-NEXT: /tmp{{[/\\]}}cross-cu-inlining.c:11:0
 
 RUN: echo "unexisting-file 0x1234" > %t.input2
-RUN: llvm-symbolizer < %t.input2
+RUN: llvm-symbolizer < %t.input2 2>&1 | FileCheck %s --check-prefix=MISSING-FILE
+
+MISSING-FILE: LLVMSymbolizer: error reading file: No such file or directory.
 
 RUN: echo "%p/Inputs/macho-universal 0x1f84" > %t.input3
 RUN: llvm-symbolizer < %t.input3 | FileCheck %s --check-prefix=UNKNOWN-ARCH




More information about the llvm-commits mailing list