[PATCH] Fix Mach-O unit tests breakage on Windows

Rui Ueyama ruiu at google.com
Thu Nov 6 18:37:40 PST 2014


Hi kledzik,

Mach-O normalized file reader assumes that the entire file is aligned
to a large boundary. If the in-memory file is not aligned properly, it will
abort with an assertion failure in read32/read64. This patch forces the
in-memory file for the unit test to be aligned at 64-byte boundary.

I found these tests are failing on Windows, but theoretically they could
fail on other platform.

http://reviews.llvm.org/D6161

Files:
  unittests/MachOTests/MachONormalizedFileBinaryReaderTests.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6161.15906.patch
Type: text/x-patch
Size: 3151 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141107/3ef48367/attachment.bin>


More information about the llvm-commits mailing list