From 2108af5551165b4d69c05922173d7cd617c028c6 Mon Sep 17 00:00:00 2001 From: Jonas Devlieghere Date: Fri, 8 Feb 2019 18:43:11 +0000 Subject: [PATCH] [test] Run the verifier for dsymutil module tests Dsymutil has an option "verify" that runs the dwarf verifier on the generated dSYM. This patch enables this for the module tests. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@353544 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/tools/dsymutil/X86/module-warnings.test | 6 +++--- test/tools/dsymutil/X86/modules-dwarf-version.m | 2 +- test/tools/dsymutil/X86/modules-empty.m | 1 + test/tools/dsymutil/X86/modules-pruning.cpp | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/test/tools/dsymutil/X86/module-warnings.test b/test/tools/dsymutil/X86/module-warnings.test index 2304e978711..0249a30d0a0 100644 --- a/test/tools/dsymutil/X86/module-warnings.test +++ b/test/tools/dsymutil/X86/module-warnings.test @@ -23,7 +23,7 @@ # RUN: cp %p/../Inputs/module-warnings/1.o %t.dir # RUN: cp %p/../Inputs/module-warnings/Foo.pcm %t.dir/ModuleCache # -# RUN: dsymutil -f -oso-prepend-path=%t.dir -y \ +# RUN: dsymutil -verify -f -oso-prepend-path=%t.dir -y \ # RUN: %p/dummy-debug-map.map -o %t 2>&1 | FileCheck %s # # Module-not-found should be reported only once. @@ -32,12 +32,12 @@ # CHECK-NOT: warning: {{.*}}Bar.pcm: # # RUN: cp %p/../Inputs/module-warnings/libstatic.a %t.dir -# RUN: dsymutil -f -oso-prepend-path=%t.dir -y %s -o %t 2>&1 | FileCheck %s +# RUN: dsymutil -verify -f -oso-prepend-path=%t.dir -y %s -o %t 2>&1 | FileCheck %s # CHECK: rebuild the module cache # CHECK-NOT: static libraries # # RUN: rm -rf %t.dir/ModuleCache -# RUN: dsymutil -f -oso-prepend-path=%t.dir -y %s -o %t 2>&1 \ +# RUN: dsymutil -verify -f -oso-prepend-path=%t.dir -y %s -o %t 2>&1 \ # RUN: | FileCheck %s --check-prefix=STATIC # STATIC: warning: {{.*}}Bar.pcm: # STATIC: note: Linking a static library diff --git a/test/tools/dsymutil/X86/modules-dwarf-version.m b/test/tools/dsymutil/X86/modules-dwarf-version.m index 2a49eeb5040..7c395f22e51 100644 --- a/test/tools/dsymutil/X86/modules-dwarf-version.m +++ b/test/tools/dsymutil/X86/modules-dwarf-version.m @@ -8,7 +8,7 @@ // RUN: mkdir %t.dir // RUN: cp %p/../Inputs/modules/Bar.pcm %t.dir // RUN: cp %p/../Inputs/modules-dwarf-version/1.o %t.dir -// RUN: dsymutil -f -oso-prepend-path=%t.dir \ +// RUN: dsymutil -verify -f -oso-prepend-path=%t.dir \ // RUN: -y %p/dummy-debug-map.map -o - \ // RUN: | llvm-dwarfdump --debug-info - | FileCheck %s diff --git a/test/tools/dsymutil/X86/modules-empty.m b/test/tools/dsymutil/X86/modules-empty.m index 6f956772465..ce5ab427af5 100644 --- a/test/tools/dsymutil/X86/modules-empty.m +++ b/test/tools/dsymutil/X86/modules-empty.m @@ -14,6 +14,7 @@ EOF // RUN: mkdir %t.dir // RUN: cp %p/../Inputs/modules-empty/1.o %p/../Inputs/modules-empty/Empty.pcm %t.dir // RUN: dsymutil -f -oso-prepend-path=%t.dir \ +// RUN: -verify \ // RUN: -y %p/dummy-debug-map.map -o - \ // RUN: | llvm-dwarfdump --debug-info - | FileCheck %s diff --git a/test/tools/dsymutil/X86/modules-pruning.cpp b/test/tools/dsymutil/X86/modules-pruning.cpp index 7f331f183f0..2df39e173c9 100644 --- a/test/tools/dsymutil/X86/modules-pruning.cpp +++ b/test/tools/dsymutil/X86/modules-pruning.cpp @@ -1,4 +1,5 @@ // RUN: dsymutil -f -oso-prepend-path=%p/../Inputs/modules-pruning \ +// RUN: -verify \ // RUN: -y %p/dummy-debug-map.map -o - \ // RUN: | llvm-dwarfdump --name isRef -p - | FileCheck %s -- 2.11.0