[compiler-rt] r335089 - [asan] Add flushes to try to fix test
Reid Kleckner via llvm-commits
llvm-commits at lists.llvm.org
Tue Jun 19 18:09:51 PDT 2018
Author: rnk
Date: Tue Jun 19 18:09:51 2018
New Revision: 335089
URL: http://llvm.org/viewvc/llvm-project?rev=335089&view=rev
Log:
[asan] Add flushes to try to fix test
Modified:
compiler-rt/trunk/test/asan/TestCases/Windows/user-exception.cc
Modified: compiler-rt/trunk/test/asan/TestCases/Windows/user-exception.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/asan/TestCases/Windows/user-exception.cc?rev=335089&r1=335088&r2=335089&view=diff
==============================================================================
--- compiler-rt/trunk/test/asan/TestCases/Windows/user-exception.cc (original)
+++ compiler-rt/trunk/test/asan/TestCases/Windows/user-exception.cc Tue Jun 19 18:09:51 2018
@@ -20,7 +20,7 @@ static long WINAPI SEHHandler(EXCEPTION_
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_
int main() {
SetUnhandledExceptionFilter(SEHHandler);
fprintf(stderr, "in main\n");
+ fflush(stderr);
volatile int *p = nullptr;
*p = 42;
More information about the llvm-commits
mailing list