From: Alexey Samsonov Date: Wed, 4 Nov 2015 00:30:19 +0000 (+0000) Subject: [llvm-symbolizer] Improve the test for missing input file. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=a6c7bb0f0ca40dbbbea3699d6435eb6cd7b04731;p=oota-llvm.git [llvm-symbolizer] Improve the test for missing input file. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252020 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/DebugInfo/llvm-symbolizer.test b/test/DebugInfo/llvm-symbolizer.test index 69619b0261d..41e528a268e 100644 --- a/test/DebugInfo/llvm-symbolizer.test +++ b/test/DebugInfo/llvm-symbolizer.test @@ -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