[llvm-symbolizer] Improve the test for missing input file.
authorAlexey Samsonov <vonosmas@gmail.com>
Wed, 4 Nov 2015 00:30:19 +0000 (00:30 +0000)
committerAlexey Samsonov <vonosmas@gmail.com>
Wed, 4 Nov 2015 00:30:19 +0000 (00:30 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252020 91177308-0d34-0410-b5e6-96231b3b80d8

test/DebugInfo/llvm-symbolizer.test

index 69619b0261d19d703a3860563a6ded85a39395ce..41e528a268ed9a48e37ae04d942effcb00460676 100644 (file)
@@ -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