aboutsummaryrefslogtreecommitdiff
path: root/test/asan/TestCases/debug_stacks.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/asan/TestCases/debug_stacks.cc')
-rw-r--r--test/asan/TestCases/debug_stacks.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/asan/TestCases/debug_stacks.cc b/test/asan/TestCases/debug_stacks.cc
index 15af76dc438a..857e905094be 100644
--- a/test/asan/TestCases/debug_stacks.cc
+++ b/test/asan/TestCases/debug_stacks.cc
@@ -19,6 +19,9 @@ void func2() {
}
int main() {
+ // Disable stderr buffering. Needed on Windows.
+ setvbuf(stderr, NULL, _IONBF, 0);
+
func1();
func2();