From 7ed5f245b145bdbc98da183236100c2e3a0163a9 Mon Sep 17 00:00:00 2001 From: eine <6628437+eine@users.noreply.github.com> Date: Sat, 21 Nov 2020 09:56:18 +0100 Subject: win32: add fprintf to grt_save_backtrace (#1516) Co-authored-by: eine --- src/grt/config/win32.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src') diff --git a/src/grt/config/win32.c b/src/grt/config/win32.c index 677943c4a..a90a2891d 100644 --- a/src/grt/config/win32.c +++ b/src/grt/config/win32.c @@ -198,6 +198,14 @@ __ghdl_run_through_longjump (int (*func)(void)) void grt_save_backtrace (struct backtrace_addrs *bt, int skip) { + /* FIXME + testsuite/gna/issue635 fails on GitHub Actions when executed with + LLVM backend on MINGW64 (MSYS2). GHDL returns '3', instead of '0'. + This dummy printf fixes it, surprisingly. + See https://github.com/ghdl/ghdl/pull/1516 + */ + printf(""); + CONTEXT ctxt; RtlCaptureContext (&ctxt); -- cgit v1.2.3