aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/core
diff options
context:
space:
mode:
authorGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-03-21 16:50:31 -0700
committerGravatar Jan Tattermusch <jtattermusch@users.noreply.github.com>2016-03-21 16:50:31 -0700
commit86eece8c05015aedbf0cfba2386723f8a61395e5 (patch)
treedd4847690589577bd02d313491f77e61e7d39b84 /test/core
parent2fa7c9682b8880acaf699abb499a6dc1f6d265b2 (diff)
parentbb84c6a70ee15759fcc5c612847a1681f0ad68af (diff)
Merge pull request #5797 from ctiller/win2
Make stack traces show up in run_tests.py logs
Diffstat (limited to 'test/core')
-rw-r--r--test/core/util/test_config.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/core/util/test_config.c b/test/core/util/test_config.c
index bf672e8f67..f408048fdf 100644
--- a/test/core/util/test_config.c
+++ b/test/core/util/test_config.c
@@ -99,6 +99,7 @@ static void print_current_stack() {
SymFromAddrW(process, (DWORD64)(callers_stack[i]), 0, symbol);
fwprintf(stderr, L"*** %d: %016I64X %ls - %016I64X\n", i,
(DWORD64)callers_stack[i], symbol->Name, (DWORD64)symbol->Address);
+ fflush(stderr);
}
free(symbol);
@@ -154,6 +155,7 @@ static void print_stack_from_context(CONTEXT c) {
fwprintf(
stderr, L"*** %016I64X %ls - %016I64X\n", (DWORD64)(s.AddrPC.Offset),
has_symbol ? symbol->Name : L"<<no symbol>>", (DWORD64)symbol->Address);
+ fflush(stderr);
}
free(symbol);