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

Peter Collingbourne peter at pcc.me.uk
Wed Jul 1 00:16:33 PDT 2015


Hi samsonov,

Specifically:

- Disable int128 tests on Windows, as MSVC cl.exe does not support
  int128, so we might not have been able to build the runtime
  with int128 support.

- XFAIL the vptr tests as we lack Microsoft ABI support.

- XFAIL enum.cpp as UBSan fails to add the correct instrumentation code
  for some reason.

- Modify certain tests that build executables multiple times to use
  unique names for each executable. This works around a race condition
  observed on Windows.

- Implement IsAccessibleMemoryRange for Windows to fix the last
  misaligned.cpp test.

- Introduce a substitution for testing crashes on Windows using
  KillTheDoctor.

http://reviews.llvm.org/D10864

Files:
  lib/sanitizer_common/sanitizer_win.cc
  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/TestCases/TypeCheck/vptr-virtual-base.cpp
  test/ubsan/TestCases/TypeCheck/vptr.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.28849.patch
Type: text/x-patch
Size: 26826 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150701/d2cca8fe/attachment.bin>


More information about the llvm-commits mailing list