[PATCH] UBSan: Enable runtime library tests on Windows, and get most tests passing.

Peter Collingbourne peter at pcc.me.uk
Wed Jul 1 20:12:59 PDT 2015


- Use page size from GetNativeSystemInfo instead of hardcoded page size from GetPageSize().

  Fixes a test failure when targeting 32-bit Windows. Not really clear where the hardcoded value comes from or if we should start returning the GetNativeSystemInfo() value from GetPageSize() (if I try it, I see test failures elsewhere).
- Address review comments


http://reviews.llvm.org/D10864

Files:
  CMakeLists.txt
  lib/sanitizer_common/sanitizer_win.cc
  test/CMakeLists.txt
  test/lit.common.cfg
  test/ubsan/CMakeLists.txt
  test/ubsan/TestCases/Float/cast-overflow.cpp
  test/ubsan/TestCases/Integer/add-overflow.cpp
  test/ubsan/TestCases/Integer/div-zero.cpp
  test/ubsan/TestCases/Integer/incdec-overflow.cpp
  test/ubsan/TestCases/Integer/negate-overflow.cpp
  test/ubsan/TestCases/Integer/shift.cpp
  test/ubsan/TestCases/Integer/sub-overflow.cpp
  test/ubsan/TestCases/Integer/uadd-overflow.cpp
  test/ubsan/TestCases/Integer/uincdec-overflow.cpp
  test/ubsan/TestCases/Integer/usub-overflow.cpp
  test/ubsan/TestCases/Misc/bounds.cpp
  test/ubsan/TestCases/Misc/deduplication.cpp
  test/ubsan/TestCases/Misc/enum.cpp
  test/ubsan/TestCases/Misc/missing_return.cpp
  test/ubsan/TestCases/TypeCheck/misaligned.cpp
  test/ubsan/TestCases/TypeCheck/null.cpp
  test/ubsan/lit.common.cfg

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10864.28930.patch
Type: text/x-patch
Size: 27411 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150702/80942f55/attachment.bin>


More information about the llvm-commits mailing list