[lld] [llvm] [llvm-readelf] Print a blank line before the first hex/string dump (PR #85744)

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 19 00:55:16 PDT 2024


================
@@ -1,10 +1,12 @@
 # REQUIRES: x86-registered-target
 
 # RUN: llvm-mc -filetype=obj -triple x86_64 %s -o %t.o
-# RUN: llvm-readobj -x .a -x .b %t.o | FileCheck %s
+# RUN: llvm-readobj -x .a -x .b %t.o | FileCheck %s --check-prefixes=HEADER,CHECK
 # RUN: llvm-readelf -x .a -x .b %t.o | FileCheck %s
 
-# CHECK:      Hex dump of section '.a':
+# HEADER:     LoadName:
----------------
jh7370 wrote:

Is the HEADER check here actually important to the test? It feels to me like you could do the same as in hex-dump.s and just check the blank line.

https://github.com/llvm/llvm-project/pull/85744


More information about the llvm-commits mailing list