[lld] [lld][test] filecheck typo fixes (PR #93471)

via llvm-commits llvm-commits at lists.llvm.org
Sat Jun 1 03:36:19 PDT 2024


https://github.com/klensy updated https://github.com/llvm/llvm-project/pull/93471

>From 22dbaf50c1cc5c87ca2f932d8580fa3125f4526c Mon Sep 17 00:00:00 2001
From: klensy <nightouser at gmail.com>
Date: Mon, 27 May 2024 15:52:25 +0300
Subject: [PATCH] filecheck typo fixes

---
 lld/test/COFF/duplicate.test                         | 2 +-
 lld/test/COFF/pdb-local-constants.test               | 2 +-
 lld/test/COFF/pdb_char8_t.ll                         | 2 +-
 lld/test/ELF/aarch64-cortex-a53-843419-thunk-align.s | 2 +-
 lld/test/ELF/arm-thumb-branch-rangethunk.s           | 3 ++-
 lld/test/ELF/dso-undef-size.s                        | 2 +-
 lld/test/ELF/lto/ctor-dtor-alias2.ll                 | 2 +-
 lld/test/ELF/lto/sparcv9.ll                          | 2 +-
 lld/test/MachO/compact-unwind-foldings.s             | 4 ++--
 lld/test/MachO/eh-frame.s                            | 4 ++--
 lld/test/MachO/invalid/undef-debug.s                 | 2 +-
 lld/test/wasm/tag-section.ll                         | 2 +-
 12 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/lld/test/COFF/duplicate.test b/lld/test/COFF/duplicate.test
index 76c88b070ff37..3e97cbe318ea6 100644
--- a/lld/test/COFF/duplicate.test
+++ b/lld/test/COFF/duplicate.test
@@ -6,7 +6,7 @@ RUN: not lld-link /out:beta.dll /dll alpha.obj beta.obj alpha.lib 2>&1 | FileChe
 
 CHECK-ALPHA: error: duplicate symbol: f
 CHECK-ALPHA: defined at {{.*}}alpha.obj
-CHECK-APLHA: defined at alpha.dll
+CHECK-ALPHA: defined at alpha.dll
 
 RUN: llc -mtriple x86_64-windows-msvc -filetype obj -o gamma.obj %S/Inputs/gamma.ll
 RUN: not lld-link /out:gamma.exe /subsystem:console /entry:mainCRTStartup gamma.obj alpha.lib 2>&1 | FileCheck %s -check-prefix CHECK-GAMMA
diff --git a/lld/test/COFF/pdb-local-constants.test b/lld/test/COFF/pdb-local-constants.test
index 3a9538252ed80..4e8e8c0ee865b 100644
--- a/lld/test/COFF/pdb-local-constants.test
+++ b/lld/test/COFF/pdb-local-constants.test
@@ -18,4 +18,4 @@ CHECK-NEXT:           type = 0x1002 (const int), value = 321
 
 CHECK:                          Symbols
 CHECK:           220 | S_CONSTANT [size = 12] `i`
-CHECK-NEXT            type = 0x0074 (int), value = 123
\ No newline at end of file
+CHECK-NEXT:           type = 0x0074 (int), value = 123
\ No newline at end of file
diff --git a/lld/test/COFF/pdb_char8_t.ll b/lld/test/COFF/pdb_char8_t.ll
index 0d160f0e50c7e..313b5c314dbb8 100644
--- a/lld/test/COFF/pdb_char8_t.ll
+++ b/lld/test/COFF/pdb_char8_t.ll
@@ -1,7 +1,7 @@
 ; REQUIRES: x86
 ; RUN: llc -mtriple x86_64-windows-msvc -filetype obj -o %t.obj %s
 ; RUN: lld-link /nodefaultlib /noentry /dll /debug /out:%t.exe /pdb:%t.pdb %t.obj
-; RUN: llvm-pdbutil dump -type-index=0x7c %t.pdb
+; RUN: llvm-pdbutil dump -type-index=0x7c %t.pdb | FileCheck %s
 
 ; CHECK: 0x007C (char8_t) | char8_t
 
diff --git a/lld/test/ELF/aarch64-cortex-a53-843419-thunk-align.s b/lld/test/ELF/aarch64-cortex-a53-843419-thunk-align.s
index 9320d510d9110..0e31d5c4b0562 100644
--- a/lld/test/ELF/aarch64-cortex-a53-843419-thunk-align.s
+++ b/lld/test/ELF/aarch64-cortex-a53-843419-thunk-align.s
@@ -7,7 +7,7 @@
 // RUN:                  *(.text.02) } \
 // RUN:                  .foo : { *(.foo_sec) } } " > %t.script
 // RUN: ld.lld -pie --fix-cortex-a53-843419 --script=%t.script %t.o -o %t2
-// RUN: llvm-objdump --no-show-raw-insn --triple=aarch64-linux-gnu -d %t2
+// RUN: llvm-objdump --no-show-raw-insn --triple=aarch64-linux-gnu -d %t2 | FileCheck %s
 
 
 /// %t2 is > 128 Megabytes, so delete it early.
diff --git a/lld/test/ELF/arm-thumb-branch-rangethunk.s b/lld/test/ELF/arm-thumb-branch-rangethunk.s
index d19a43c44ad60..176d84aa02ea4 100644
--- a/lld/test/ELF/arm-thumb-branch-rangethunk.s
+++ b/lld/test/ELF/arm-thumb-branch-rangethunk.s
@@ -2,7 +2,8 @@
 // RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=thumbv7a-none-linux-gnueabi %s -o %t
 // RUN: llvm-mc -arm-add-build-attributes -filetype=obj -triple=thumbv7a-none-linux-gnueabi %S/Inputs/far-arm-thumb-abs.s -o %tfar
 // RUN: ld.lld  %t %tfar -o %t2
-// RUN: llvm-objdump -d %t2
+// RUN: llvm-objdump -d %t2 | FileCheck %s
+
  .syntax unified
  .thumb
  .section .text, "ax",%progbits
diff --git a/lld/test/ELF/dso-undef-size.s b/lld/test/ELF/dso-undef-size.s
index 2e2aa0b5fa46d..659e3ac4564e6 100644
--- a/lld/test/ELF/dso-undef-size.s
+++ b/lld/test/ELF/dso-undef-size.s
@@ -3,7 +3,7 @@
 # RUN: ld.lld -shared %t1.o -o %t1.so
 # RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t2.o
 # RUN: ld.lld -shared %t2.o %t1.so -o %t2.so
-# RUN: llvm-readobj --symbols --dyn-syms %t2.so
+# RUN: llvm-readobj --symbols --dyn-syms %t2.so | FileCheck %s
 
 # CHECK:      Symbols [
 # CHECK-NEXT:   Symbol {
diff --git a/lld/test/ELF/lto/ctor-dtor-alias2.ll b/lld/test/ELF/lto/ctor-dtor-alias2.ll
index fda2e95e5acd7..49ded634b1646 100644
--- a/lld/test/ELF/lto/ctor-dtor-alias2.ll
+++ b/lld/test/ELF/lto/ctor-dtor-alias2.ll
@@ -7,7 +7,7 @@
 ; RUN: opt -module-summary a.ll -o a.bc
 ; RUN: opt -module-summary b.ll -o b.bc
 ; RUN: ld.lld -shared a.bc b.bc -o out.so
-; RUN: llvm-nm -D out.so
+; RUN: llvm-nm -D out.so | FileCheck %s
 
 ;; Although D0/D2 in b.bc is non-prevailing, keep D1/D2 as definitions, otherwise
 ;; the output may have an undefined and unsatisfied D1.
diff --git a/lld/test/ELF/lto/sparcv9.ll b/lld/test/ELF/lto/sparcv9.ll
index a4cdc6eafa403..9ffdd988b6964 100644
--- a/lld/test/ELF/lto/sparcv9.ll
+++ b/lld/test/ELF/lto/sparcv9.ll
@@ -5,7 +5,7 @@
 ; RUN: ld.lld %t.bc -o %t
 ; RUN: llvm-readobj -h %t | FileCheck %s
 
-; CHECK    Class: 64-bit
+; CHECK:   Class: 64-bit
 ; CHECK:   DataEncoding: BigEndian
 ; CHECK: Machine: EM_SPARCV9
 
diff --git a/lld/test/MachO/compact-unwind-foldings.s b/lld/test/MachO/compact-unwind-foldings.s
index 18511da772144..0e97e708cf139 100644
--- a/lld/test/MachO/compact-unwind-foldings.s
+++ b/lld/test/MachO/compact-unwind-foldings.s
@@ -23,8 +23,8 @@
 ## Check that [1] offset starts at c's address + 3 (its length).
 # CHECK-LABEL: Contents of __unwind_info section:
 # CHECK:  Top level indices: (count = 2)
-# CHECK-NEXT : [0]: function offset=[[#%#.7x,MAIN_ADDR]]
-# CHECK-NEXT : [1]: function offset=[[#%#.7x,C_ADDR + 3]]
+# CHECK-NEXT: [0]: function offset=[[#%#.7x,MAIN_ADDR]]
+# CHECK-NEXT: [1]: function offset=[[#%#.7x,C_ADDR + 3]]
 
 #--- fold-tail.s
         .text
diff --git a/lld/test/MachO/eh-frame.s b/lld/test/MachO/eh-frame.s
index 64fd364c87a59..70c04d2cec2d4 100644
--- a/lld/test/MachO/eh-frame.s
+++ b/lld/test/MachO/eh-frame.s
@@ -66,8 +66,8 @@
 # CHECK:     [2]: function offset=0x[[#%.8x,H - BASE]], LSDA offset=0x[[#%.8x,EXCEPT2 - BASE]]
 # CHECK:   Second level indices:
 # CHECK:     Second level index[0]:
-# CHECK       [0]: function offset=0x[[#%.8x,F - BASE]],              encoding[{{.*}}]=0x52{{.*}}
-# CHECK       [1]: function offset=0x[[#%.8x,NO_UNWIND - BASE]],      encoding[{{.*}}]=0x00000000
+# CHECK:      [0]: function offset=0x[[#%.8x,F - BASE]],              encoding[{{.*}}]=0x52{{.*}}
+# CHECK:      [1]: function offset=0x[[#%.8x,NO_UNWIND - BASE]],      encoding[{{.*}}]=0x00000000
 # CHECK:      [2]: function offset=0x[[#%.8x,G - BASE]],              encoding[{{.*}}]=0x0[[#%x,DWARF_ENC]][[#%.6x, G_DWARF_OFF:]]
 # CHECK:      [3]: function offset=0x[[#%.8x,H - BASE]],              encoding[{{.*}}]=0x0[[#%x,DWARF_ENC]][[#%.6x, H_DWARF_OFF:]]
 # CHECK:      [4]: function offset=0x[[#%.8x,MY_PERSONALITY - BASE]], encoding[{{.*}}]=0x00000000
diff --git a/lld/test/MachO/invalid/undef-debug.s b/lld/test/MachO/invalid/undef-debug.s
index 7cf75fa898274..0990687d19750 100644
--- a/lld/test/MachO/invalid/undef-debug.s
+++ b/lld/test/MachO/invalid/undef-debug.s
@@ -6,7 +6,7 @@
 # CHECK-NEXT: >>> referenced by test.c:3
 # CHECK-NEXT: >>>               {{.*}}.o:(symbol _main+0x0)
 # CHECK-NEXT: >>> referenced by test.c:2
-# CHECK-NEXT  >>>               {{.*}}.o:(symbol _ptr+0x0)
+# CHECK-NEXT: >>>               {{.*}}.o:(symbol _ptr+0x0)
 
 ## This is the output of `clang -g2 -O2 -fdebug-compilation-dir=. -fno-ident` called on the following file, with the
 ## Apple DWARF tables removed:
diff --git a/lld/test/wasm/tag-section.ll b/lld/test/wasm/tag-section.ll
index 4decdb58f952a..c85c798ff5e53 100644
--- a/lld/test/wasm/tag-section.ll
+++ b/lld/test/wasm/tag-section.ll
@@ -44,7 +44,7 @@ define void @_start() {
 ; NOPIC:        - Type:            GLOBAL
 
 ; NOPIC-EXPORT-ALL:   - Type:            EXPORT
-; NOPIC-EXPORT-ALL-NEXT Exports:
+; NOPIC-EXPORT-ALL-NEXT: Exports:
 ; NOPIC-EXPORT-ALL:       - Name:            __cpp_exception
 ; NOPIC-EXPORT-ALL:         Kind:            TAG
 ; NOPIC-EXPORT-ALL:         Index:           0



More information about the llvm-commits mailing list