]> granicus.if.org Git - llvm/commitdiff
[test] Run the verifier for dsymutil module tests
authorJonas Devlieghere <jonas@devlieghere.com>
Fri, 8 Feb 2019 18:43:11 +0000 (18:43 +0000)
committerJonas Devlieghere <jonas@devlieghere.com>
Fri, 8 Feb 2019 18:43:11 +0000 (18:43 +0000)
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
test/tools/dsymutil/X86/modules-dwarf-version.m
test/tools/dsymutil/X86/modules-empty.m
test/tools/dsymutil/X86/modules-pruning.cpp

index 2304e9787115b006bff876727772c56cda0e6c88..0249a30d0a0e06828f20154fd21d27e83ed9c3d8 100644 (file)
@@ -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.
 # 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
index 2a49eeb5040ed996da71aa47e3d288a2587744c0..7c395f22e5168d315d3a7d540d42b9f544836b13 100644 (file)
@@ -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
 
index 6f956772465d49ce6e60eb4e1495b3b6917764ec..ce5ab427af57d388047fea81a89efc381b6dcecf 100644 (file)
@@ -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
 
index 7f331f183f0a5e22b8aeedd6fcd4d0aef446cf97..2df39e173c92efd3167ca2776f8990f539f0dcc7 100644 (file)
@@ -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