[llvm] f708640 - [Object][test] Fix invalid.test

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 28 01:27:20 PDT 2022


Author: Fangrui Song
Date: 2022-03-28T01:27:16-07:00
New Revision: f7086401b7c03179b755768845956bc8e84ab266

URL: https://github.com/llvm/llvm-project/commit/f7086401b7c03179b755768845956bc8e84ab266
DIFF: https://github.com/llvm/llvm-project/commit/f7086401b7c03179b755768845956bc8e84ab266.diff

LOG: [Object][test] Fix invalid.test

Added: 
    

Modified: 
    llvm/test/Object/invalid.test

Removed: 
    


################################################################################
diff  --git a/llvm/test/Object/invalid.test b/llvm/test/Object/invalid.test
index ea95f6f5abcf9..58ec3cbeadd19 100644
--- a/llvm/test/Object/invalid.test
+++ b/llvm/test/Object/invalid.test
@@ -671,9 +671,10 @@ Sections:
 
 ## Check the case when the e_phoff field is invalid.
 # RUN: yaml2obj --docnum=31 %s -o %t31
-# RUN: not llvm-objdump --private-headers %t31 2>&1 | FileCheck -DFILE=%t31 %s --check-prefix=INVALID-PHOFF
+# RUN: llvm-objdump --private-headers %t31 2>&1 | FileCheck -DFILE=%t31 %s --check-prefix=INVALID-PHOFF
 
-# INVALID-PHOFF: error: '[[FILE]]': program headers are longer than binary of size 280: e_phoff = 0xffffff, e_phnum = 0, e_phentsize = 0
+# INVALID-PHOFF: warning: '[[FILE]]': program headers are longer than binary of size 280: e_phoff = 0xffffff, e_phnum = 0, e_phentsize = 0
+# INVALID-PHOFF-EMPTY:
 
 --- !ELF
 FileHeader:


        


More information about the llvm-commits mailing list