[llvm] r367702 - [llvm-objcopy] - Fix the strip-dwo-groups.test.
George Rimar via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 2 11:22:46 PDT 2019
Author: grimar
Date: Fri Aug 2 11:22:46 2019
New Revision: 367702
URL: http://llvm.org/viewvc/llvm-project?rev=367702&view=rev
Log:
[llvm-objcopy] - Fix the strip-dwo-groups.test.
It was reported (https://reviews.llvm.org/D65273#1612246)
that this test fails if the compilation directory contain
a "debug_" substring.
This should fix it.
Modified:
llvm/trunk/test/tools/llvm-objcopy/ELF/strip-dwo-groups.test
Modified: llvm/trunk/test/tools/llvm-objcopy/ELF/strip-dwo-groups.test
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/llvm-objcopy/ELF/strip-dwo-groups.test?rev=367702&r1=367701&r2=367702&view=diff
==============================================================================
--- llvm/trunk/test/tools/llvm-objcopy/ELF/strip-dwo-groups.test (original)
+++ llvm/trunk/test/tools/llvm-objcopy/ELF/strip-dwo-groups.test Fri Aug 2 11:22:46 2019
@@ -1,22 +1,27 @@
# RUN: yaml2obj %s -o %t
# RUN: llvm-objcopy --strip-dwo %t
-# RUN: llvm-readobj --symbols -S --elf-section-groups %t | FileCheck %s --implicit-check-not=debug_
+# RUN: llvm-readobj --symbols -S --elf-section-groups %t | FileCheck %s
## `llvm-objcopy --strip-dwo` strips out dwo sections, as a result, the index of
## the symbol table, the indices of the symbols and the indices of the sections
## which go after the removed ones will change. Consequently, the fields
## Link, Info and the content of .group need to be updated.
+# CHECK-NOT: .debug_
+
# CHECK: Groups {
-# CHECK: Name: .group (1)
-# CHECK-NEXT: Index: 1{{$}}
-# CHECK-NEXT: Link: 6
-# CHECK-NEXT: Info: 2
-# CHECK-NEXT: Type: COMDAT (0x1)
-# CHECK-NEXT: Signature: group1
-# CHECK-NEXT: Section(s) in group [
-# CHECK-NEXT: .text.group1 (3)
-# CHECK-NEXT: ]
+# CHECK-NEXT: Group {
+# CHECK-NEXT: Name: .group (1)
+# CHECK-NEXT: Index: 1{{$}}
+# CHECK-NEXT: Link: 6
+# CHECK-NEXT: Info: 2
+# CHECK-NEXT: Type: COMDAT (0x1)
+# CHECK-NEXT: Signature: group1
+# CHECK-NEXT: Section(s) in group [
+# CHECK-NEXT: .text.group1 (3)
+# CHECK-NEXT: ]
+
+# CHECK-NOT: .debug_
# CHECK: Name: .group (1)
# CHECK-NEXT: Index: 2{{$}}
@@ -29,6 +34,8 @@
# CHECK-NEXT: .rela.text.group2 (5)
# CHECK-NEXT: ]
+# CHECK-NOT: .debug_
+
--- !ELF
FileHeader:
Class: ELFCLASS64
More information about the llvm-commits
mailing list