[PATCH] D111427: [AIX] Ignore case when comparing output from od

Kai Nacke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 8 08:37:02 PDT 2021


Kai created this revision.
Kai added reviewers: daltenty, Esme, sfertile, abhina.sreeskantharajan, kbarton.
Kai requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

POSIX does not define the exact output from od tool.
While most implementations use lower case characters in hex output,
the z/OS USS implementation uses upper case characters.
To avoid LIT failures, the FileCheck option to ignore the case must
be used when checking hex bytes.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D111427

Files:
  llvm/test/tools/yaml2obj/XCOFF/string-table.yaml


Index: llvm/test/tools/yaml2obj/XCOFF/string-table.yaml
===================================================================
--- llvm/test/tools/yaml2obj/XCOFF/string-table.yaml
+++ llvm/test/tools/yaml2obj/XCOFF/string-table.yaml
@@ -285,7 +285,8 @@
 ## Case 19: use the value of the `Length` field for the first 4 bytes of the
 ##          table. We dump the string table from the offset of 0x38.
 # RUN: yaml2obj --docnum=1 %s -DSYMNAME='nameInStrTbl' -DLENGTHVALUE=20 -o %t19
-# RUN: od -A n -t x1 -v -j 0x38 %t19 | FileCheck %s --check-prefix=CASE19
+# RUN: od -A n -t x1 -v -j 0x38 %t19 \
+# RUN:   | FileCheck %s --ignore-case --check-prefix=CASE19
 
 # CASE19:      00 00 00 14 6e 61 6d 65 49 6e 53 74 72 54 62 6c
 # CASE19-NEXT: 00


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111427.378241.patch
Type: text/x-patch
Size: 740 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211008/1ecd43be/attachment.bin>


More information about the llvm-commits mailing list