main.cpp 580 B

123456789101112131415161718192021
  1. #pragma comment(lib, "Pathcch.lib")
  2. #pragma comment(lib, "RuntimeObject.lib")
  3. #pragma comment(lib, "Synchronization.lib")
  4. #pragma comment(lib, "RpcRt4.lib")
  5. #define CATCH_CONFIG_MAIN
  6. #include "catch.hpp"
  7. #if WITEST_ADDRESS_SANITIZER
  8. extern "C" __declspec(dllexport)
  9. const char* __asan_default_options()
  10. {
  11. return
  12. // Tests validate OOM, so this is expected
  13. "allocator_may_return_null=1"
  14. // Some structs in Windows have dynamic size where we over-allocate for extra data past the end
  15. ":new_delete_type_mismatch=0";
  16. }
  17. #endif