[llvm] b932db0 - [llvm-objcopy,test] Prepend error: to some messages
Fangrui Song via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 1 20:20:04 PDT 2024
Author: Fangrui Song
Date: 2024-04-01T20:19:59-07:00
New Revision: b932db08bb8e56c80380468698a6f75d5ea35577
URL: https://github.com/llvm/llvm-project/commit/b932db08bb8e56c80380468698a6f75d5ea35577
DIFF: https://github.com/llvm/llvm-project/commit/b932db08bb8e56c80380468698a6f75d5ea35577.diff
LOG: [llvm-objcopy,test] Prepend error: to some messages
Added:
Modified:
llvm/test/tools/llvm-objcopy/ELF/discard-locals-rel.test
llvm/test/tools/llvm-objcopy/ELF/strip-reloc-symbol.test
Removed:
################################################################################
diff --git a/llvm/test/tools/llvm-objcopy/ELF/discard-locals-rel.test b/llvm/test/tools/llvm-objcopy/ELF/discard-locals-rel.test
index 3658eb376010a6..00bb8fcf18205b 100644
--- a/llvm/test/tools/llvm-objcopy/ELF/discard-locals-rel.test
+++ b/llvm/test/tools/llvm-objcopy/ELF/discard-locals-rel.test
@@ -1,5 +1,5 @@
# RUN: yaml2obj %s -o %t
-# RUN: not llvm-objcopy --discard-locals %t %t2 2>&1 | FileCheck %s
+# RUN: not llvm-objcopy --discard-locals %t %t2 2>&1 | FileCheck %s -DFILE=%t
!ELF
FileHeader:
@@ -23,4 +23,4 @@ Symbols:
Type: STT_FUNC
Section: .text
-# CHECK: not stripping symbol '.L.rel' because it is named in a relocation
+# CHECK: error: '[[FILE]]': not stripping symbol '.L.rel' because it is named in a relocation
diff --git a/llvm/test/tools/llvm-objcopy/ELF/strip-reloc-symbol.test b/llvm/test/tools/llvm-objcopy/ELF/strip-reloc-symbol.test
index 63c9e122d9a216..941dacce2edf29 100644
--- a/llvm/test/tools/llvm-objcopy/ELF/strip-reloc-symbol.test
+++ b/llvm/test/tools/llvm-objcopy/ELF/strip-reloc-symbol.test
@@ -1,5 +1,5 @@
# RUN: yaml2obj %s -o %t
-# RUN: not llvm-objcopy -N foo %t %t2 2>&1 | FileCheck %s
+# RUN: not llvm-objcopy -N foo %t %t2 2>&1 | FileCheck %s -DFILE=%t
!ELF
FileHeader:
@@ -28,4 +28,4 @@ Symbols:
Value: 0x1000
Size: 8
-# CHECK: not stripping symbol 'foo' because it is named in a relocation
+# CHECK: error: '[[FILE]]': not stripping symbol 'foo' because it is named in a relocation
More information about the llvm-commits
mailing list