[llvm] r365514 - Make pdbdump-objfilename test work again

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 9 10:02:51 PDT 2019


Author: nico
Date: Tue Jul  9 10:02:51 2019
New Revision: 365514

URL: http://llvm.org/viewvc/llvm-project?rev=365514&view=rev
Log:
Make pdbdump-objfilename test work again

- The test had extension .yaml, which lit doesn't execute in this
  directory. Rename to .test to make it run, and move the yaml bits
  into a dedicated file, like with all other tests in this dir.

- llvm-pdbdump got renamed to llvm-pdbutil long ago, update test.

- -dbi-module-info got renamed in r305032, update test for this too.

Added:
    llvm/trunk/test/DebugInfo/PDB/Inputs/objfilename.yaml
    llvm/trunk/test/DebugInfo/PDB/pdbdump-objfilename.test
Removed:
    llvm/trunk/test/DebugInfo/PDB/pdbdump-objfilename.yaml

Added: llvm/trunk/test/DebugInfo/PDB/Inputs/objfilename.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/PDB/Inputs/objfilename.yaml?rev=365514&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/PDB/Inputs/objfilename.yaml (added)
+++ llvm/trunk/test/DebugInfo/PDB/Inputs/objfilename.yaml Tue Jul  9 10:02:51 2019
@@ -0,0 +1,6 @@
+---
+DbiStream:
+  Modules:
+    - Module:          'C:\src\test.obj'
+      ObjFile:         'C:\src\test.obj'
+...

Added: llvm/trunk/test/DebugInfo/PDB/pdbdump-objfilename.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/PDB/pdbdump-objfilename.test?rev=365514&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/PDB/pdbdump-objfilename.test (added)
+++ llvm/trunk/test/DebugInfo/PDB/pdbdump-objfilename.test Tue Jul  9 10:02:51 2019
@@ -0,0 +1,7 @@
+# RUN: llvm-pdbutil yaml2pdb -pdb=%t %p/Inputs/objfilename.yaml
+# RUN: llvm-pdbutil pdb2yaml -modules %t | FileCheck %s
+
+CHECK: DbiStream:
+CHECK: Modules:
+CHECK-NEXT: - Module:{{ *}}'C:\src\test.obj'
+CHECK-NEXT: ObjFile:{{ *}}'C:\src\test.obj'

Removed: llvm/trunk/test/DebugInfo/PDB/pdbdump-objfilename.yaml
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/DebugInfo/PDB/pdbdump-objfilename.yaml?rev=365513&view=auto
==============================================================================
--- llvm/trunk/test/DebugInfo/PDB/pdbdump-objfilename.yaml (original)
+++ llvm/trunk/test/DebugInfo/PDB/pdbdump-objfilename.yaml (removed)
@@ -1,14 +0,0 @@
-# RUN: llvm-pdbdump yaml2pdb -pdb=%t %s
-# RUN: llvm-pdbdump pdb2yaml -dbi-module-info %t \
-# RUN:     | FileCheck %s
-#
-# CHECK: DbiStream:
-# CHECK: Modules:
-# CHECK-NEXT: - Module:{{ *}}'C:\src\test.obj'
-# CHECK-NEXT: ObjFile:{{ *}}'C:\src\test.obj'
----
-DbiStream:
-  Modules:
-    - Module:          'C:\src\test.obj'
-      ObjFile:         'C:\src\test.obj'
-...




More information about the llvm-commits mailing list