Author: Fangrui Song Date: 2022-04-05T22:23:09-07:00 New Revision: 311a622edd31422c0969913285e54d4778477a12
URL: https://github.com/llvm/llvm-project/commit/311a622edd31422c0969913285e54d4778477a12 DIFF: https://github.com/llvm/llvm-project/commit/311a622edd31422c0969913285e54d4778477a12.diff LOG: [Object][test] Fix invalid.test (cherry picked from commit f7086401b7c03179b755768845956bc8e84ab266) 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: _______________________________________________ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
