From: Nico Weber Date: Tue, 9 Jul 2019 17:02:51 +0000 (+0000) Subject: Make pdbdump-objfilename test work again X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=33e880ca3b59e9ce93a0aecc1b2ab125619bd447;p=llvm 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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@365514 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/DebugInfo/PDB/Inputs/objfilename.yaml b/test/DebugInfo/PDB/Inputs/objfilename.yaml new file mode 100644 index 00000000000..81176ddb367 --- /dev/null +++ b/test/DebugInfo/PDB/Inputs/objfilename.yaml @@ -0,0 +1,6 @@ +--- +DbiStream: + Modules: + - Module: 'C:\src\test.obj' + ObjFile: 'C:\src\test.obj' +... diff --git a/test/DebugInfo/PDB/pdbdump-objfilename.test b/test/DebugInfo/PDB/pdbdump-objfilename.test new file mode 100644 index 00000000000..a97233f72da --- /dev/null +++ b/test/DebugInfo/PDB/pdbdump-objfilename.test @@ -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' diff --git a/test/DebugInfo/PDB/pdbdump-objfilename.yaml b/test/DebugInfo/PDB/pdbdump-objfilename.yaml deleted file mode 100644 index 6ddb4775f29..00000000000 --- a/test/DebugInfo/PDB/pdbdump-objfilename.yaml +++ /dev/null @@ -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' -...