summaryrefslogtreecommitdiffstats
path: root/llvm/test
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2016-04-28 23:47:27 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2016-04-28 23:47:27 +0000
commit1573b242aeef45124c68a22a995fbc4bff2cc868 (patch)
tree0b791a51232db3c209c16dd4bf8092005ab7d08c /llvm/test
parentf84547c6e0ec638cdfe7367572cd5d57712ea0b9 (diff)
downloadbcm5719-llvm-1573b242aeef45124c68a22a995fbc4bff2cc868.tar.gz
bcm5719-llvm-1573b242aeef45124c68a22a995fbc4bff2cc868.zip
[llvm-pdbdump] Restore error messages, handle bad block sizes
We lost the ability to report errors, bring it back. Also, correctly validate the block size. llvm-svn: 267955
Diffstat (limited to 'llvm/test')
-rw-r--r--llvm/test/DebugInfo/PDB/Inputs/bad-block-size.pdb2
-rw-r--r--llvm/test/DebugInfo/PDB/pdbdump-headers.test3
2 files changed, 5 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/PDB/Inputs/bad-block-size.pdb b/llvm/test/DebugInfo/PDB/Inputs/bad-block-size.pdb
new file mode 100644
index 00000000000..fadd8833e4b
--- /dev/null
+++ b/llvm/test/DebugInfo/PDB/Inputs/bad-block-size.pdb
@@ -0,0 +1,2 @@
+Microsoft C/C++ MSF 7.00
+DS \ No newline at end of file
diff --git a/llvm/test/DebugInfo/PDB/pdbdump-headers.test b/llvm/test/DebugInfo/PDB/pdbdump-headers.test
index d6d4bcda242..92999827e45 100644
--- a/llvm/test/DebugInfo/PDB/pdbdump-headers.test
+++ b/llvm/test/DebugInfo/PDB/pdbdump-headers.test
@@ -1,5 +1,6 @@
; RUN: llvm-pdbdump --dump-headers %p/Inputs/empty.pdb | FileCheck -check-prefix=EMPTY %s
; RUN: llvm-pdbdump --dump-headers %p/Inputs/big-read.pdb | FileCheck -check-prefix=BIG %s
+; RUN: llvm-pdbdump --dump-headers %p/Inputs/bad-block-size.pdb | FileCheck -check-prefix=BAD-BLOCK-SIZE %s
; EMPTY: BlockSize: 4096
; EMPTY-NEXT: Unknown0: 2
@@ -977,3 +978,5 @@ BIG-NEXT: Symbol Byte Size: 3080
BIG-NEXT: Type Server Index: 0
BIG-NEXT: Has EC Info: 0
BIG-NEXT: 0 Contributing Source Files:
+
+BAD-BLOCK-SIZE: The file has an unrecognized format.
OpenPOWER on IntegriCloud