[PATCH] D65140: [yaml2obj] - Allow custom fields for the SHT_UNDEF sections.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 25 00:27:20 PDT 2019
grimar added a comment.
So seems `stat` tool doesn't print "Size: <size>" on MacOS like it does on linux/windows.
Do anyone have an idea how to test that 2 outputs have the same size?
In other our tests we used something like:
# RUN: yaml2obj --docnum=2 %s -o %t2
# RUN: yaml2obj --docnum=3 %s -o %t3
# RUN: od -t x8 -v %t2 > %t.txt
# RUN: od -t x8 -v %t3 >> %t.txt
# RUN: FileCheck %s --input-file=%t.txt --check-prefix=CASE2
# CASE2: [[OFFSET:.*]] fefefefefefefefe
# CASE2: [[FILESIZE:.*]]{{$}}
# CASE2: [[OFFSET]] fefefefefefefefe
# CASE2: [[FILESIZE]]{{$}}
But I found that it is not correct. The value of `FILESIZE` actually doesn't point to the
last empty line. I tried to use `stat` because of that instead here.
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D65140/new/
https://reviews.llvm.org/D65140
More information about the llvm-commits
mailing list