diff options
author | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2019-08-05 13:55:41 +0000 |
---|---|---|
committer | Hubert Tong <hubert.reinterpretcast@gmail.com> | 2019-08-05 13:55:41 +0000 |
commit | 6ca6e91615dae42a087938a6ed0a6cbc0647f7ba (patch) | |
tree | 9663e82056e45b61cfb40615199a92d8e89b64b6 /llvm/test/tools | |
parent | b5e4d7de17155486f10693d0532f5fca82f41508 (diff) | |
download | bcm5719-llvm-6ca6e91615dae42a087938a6ed0a6cbc0647f7ba.tar.gz bcm5719-llvm-6ca6e91615dae42a087938a6ed0a6cbc0647f7ba.zip |
[yaml2obj][tests] Fix overly restrictive od output check
Summary:
rL364517 introduced further instances of `od` output checking of the
kind previously corrected by rL363829. This patch corrects the issue by
suppressing output of the input offset. The check remains sufficiently
sensitive to test for the intended value of the specific byte since the
relevant byte value is the only output we are expecting from `od`.
Reviewers: grimar, xingxue, daltenty, jasonliu, jhenderson, MaskRay
Reviewed By: grimar, MaskRay
Subscribers: llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D65680
llvm-svn: 367862
Diffstat (limited to 'llvm/test/tools')
-rw-r--r-- | llvm/test/tools/yaml2obj/elf-header-sh-fields.yaml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/test/tools/yaml2obj/elf-header-sh-fields.yaml b/llvm/test/tools/yaml2obj/elf-header-sh-fields.yaml index 65a503c3d3d..9bf64cddf1a 100644 --- a/llvm/test/tools/yaml2obj/elf-header-sh-fields.yaml +++ b/llvm/test/tools/yaml2obj/elf-header-sh-fields.yaml @@ -44,10 +44,10 @@ FileHeader: ## is unable to dump such headers. # RUN: yaml2obj --docnum=3 %s -o %t3 -# RUN: od -t x1 -v -j 0x3a -N 1 %t3 | FileCheck %s --check-prefix=NEWSIZE -# RUN: od -t x1 -v -j 0x3a -N 1 %t2 | FileCheck %s --check-prefix=OLDSIZE -# NEWSIZE: 0000072 01 -# OLDSIZE: 0000072 40 +# RUN: od -A n -t x1 -v -j 0x3a -N 1 %t3 | FileCheck %s --check-prefix=NEWSIZE +# RUN: od -A n -t x1 -v -j 0x3a -N 1 %t2 | FileCheck %s --check-prefix=OLDSIZE +# NEWSIZE: 01 +# OLDSIZE: 40 --- !ELF FileHeader: |