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 | 3f573cab15f123362af6c0d150530c86abac126a (patch) | |
tree | b31c9db4fb04486f2a522a7c6e9bccd151183b74 /compiler-rt/test | |
parent | eaa13eddafe47794ed793b7d1b231d4131b31f62 (diff) | |
download | bcm5719-llvm-3f573cab15f123362af6c0d150530c86abac126a.tar.gz bcm5719-llvm-3f573cab15f123362af6c0d150530c86abac126a.zip |
[asan] Add flushes to try to fix test
llvm-svn: 335089
Diffstat (limited to 'compiler-rt/test')
-rw-r--r-- | compiler-rt/test/asan/TestCases/Windows/user-exception.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler-rt/test/asan/TestCases/Windows/user-exception.cc b/compiler-rt/test/asan/TestCases/Windows/user-exception.cc index 6824115f27d..4cff23fbc02 100644 --- a/compiler-rt/test/asan/TestCases/Windows/user-exception.cc +++ b/compiler-rt/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; |