diff options
author | Reid Kleckner <rnk@google.com> | 2018-06-20 01:09:51 +0000 |
---|---|---|
committer | Reid Kleckner <rnk@google.com> | 2018-06-20 01:09:51 +0000 |
commit | a0ddec879cc5bf65904736b3fb88c1f2699080e4 (patch) | |
tree | 97fc9af9d4154cddae41789a97de731241cca90c /test/asan | |
parent | 386cdb7c257a4a04439f7c5b72d29bdd3e155520 (diff) |
[asan] Add flushes to try to fix test
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@335089 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/asan')
-rw-r--r-- | test/asan/TestCases/Windows/user-exception.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/asan/TestCases/Windows/user-exception.cc b/test/asan/TestCases/Windows/user-exception.cc index 6824115f2..4cff23fbc 100644 --- a/test/asan/TestCases/Windows/user-exception.cc +++ b/test/asan/TestCases/Windows/user-exception.cc @@ -20,7 +20,7 @@ static long WINAPI SEHHandler(EXCEPTION_POINTERS *info) { DWORD exception_code = info->ExceptionRecord->ExceptionCode; if (exception_code == EXCEPTION_ACCESS_VIOLATION) { fprintf(stderr, "in SEHHandler\n"); - fflush(stdout); + fflush(stderr); TerminateProcess(GetCurrentProcess(), 0); } return EXCEPTION_CONTINUE_SEARCH; @@ -29,6 +29,7 @@ static long WINAPI SEHHandler(EXCEPTION_POINTERS *info) { int main() { SetUnhandledExceptionFilter(SEHHandler); fprintf(stderr, "in main\n"); + fflush(stderr); volatile int *p = nullptr; *p = 42; |