From ce2abcf6a238b03e48dfedafb3b7fc0e73e9749a Mon Sep 17 00:00:00 2001 From: Timur Iskhodzhanov Date: Thu, 8 May 2014 15:01:29 +0000 Subject: [PATCH] [ASan tests] More progress towards Windows support git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208323 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/asan/tests/asan_interface_test.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/asan/tests/asan_interface_test.cc b/lib/asan/tests/asan_interface_test.cc index f36679012..725711c6d 100644 --- a/lib/asan/tests/asan_interface_test.cc +++ b/lib/asan/tests/asan_interface_test.cc @@ -22,7 +22,7 @@ TEST(AddressSanitizerInterface, GetEstimatedAllocatedSize) { } static const char* kGetAllocatedSizeErrorMsg = - "attempting to call __asan_get_allocated_size()"; + "attempting to call __asan_get_allocated_size"; TEST(AddressSanitizerInterface, GetAllocatedSizeAndOwnershipTest) { const size_t kArraySize = 100; @@ -148,6 +148,7 @@ TEST(AddressSanitizerInterface, ExitCode) { static void MyDeathCallback() { fprintf(stderr, "MyDeathCallback\n"); + fflush(0); // On Windows, stderr doesn't flush on crash. } TEST(AddressSanitizerInterface, DeathCallbackTest) { @@ -389,6 +390,7 @@ TEST(AddressSanitizerInterface, DISABLED_InvalidPoisonAndUnpoisonCallsTest) { free(array); } +#if !defined(_WIN32) // FIXME: This should really be a lit test. static void ErrorReportCallbackOneToZ(const char *report) { int report_len = strlen(report); ASSERT_EQ(6, write(2, "ABCDEF", 6)); @@ -403,6 +405,7 @@ TEST(AddressSanitizerInterface, SetErrorReportCallbackTest) { ASAN_PCRE_DOTALL "ABCDEF.*AddressSanitizer.*WRITE.*ABCDEF"); __asan_set_error_report_callback(NULL); } +#endif TEST(AddressSanitizerInterface, GetOwnershipStressTest) { std::vector pointers; -- 2.11.4.GIT