[PATCH] D50073: [Codeview] Add coverage test for r338308

Alexandre Ganea via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 31 08:14:39 PDT 2018


aganea created this revision.
aganea added reviewers: zturner, lebedev.ri.
Herald added a subscriber: llvm-commits.

Ditto. Please see https://reviews.llvm.org/D50006 for the change.


Repository:
  rL LLVM

https://reviews.llvm.org/D50073

Files:
  Inputs/invalid-types.yaml
  pdb-invalid-type.test


Index: pdb-invalid-type.test
===================================================================
--- pdb-invalid-type.test
+++ pdb-invalid-type.test
@@ -0,0 +1,5 @@
+RUN: llvm-pdbutil yaml2pdb -pdb=%t1.pdb %p/Inputs/one-symbol.yaml
+RUN: llvm-pdbutil yaml2pdb -pdb=%t2.pdb %p/Inputs/invalid-types.yaml
+RUN: not llvm-pdbutil merge -pdb=%t.pdb %t1.pdb %t2.pdb 2>&1 | FileCheck %s
+
+CHECK: CodeView Error: The CodeView record is corrupted.
Index: Inputs/invalid-types.yaml
===================================================================
--- Inputs/invalid-types.yaml
+++ Inputs/invalid-types.yaml
@@ -0,0 +1,9 @@
+---
+TpiStream:
+  Records:
+    # uint32_t* [Index: 0x1000]
+    - Kind:            LF_POINTER
+      Pointer:         
+        ReferentType:    4097
+        Attrs:           32778
+...


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50073.158271.patch
Type: text/x-patch
Size: 815 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180731/5ad99ae6/attachment.bin>


More information about the llvm-commits mailing list