From fe00017a06ddf9314ce79a83a60ae6333769bb24 Mon Sep 17 00:00:00 2001 From: Marcus Asteborg Date: Sun, 7 Jun 2020 21:16:12 -0700 Subject: Disable message box when calling abort(). The message box is causing hangs in tests. Signed-off-by: Jean-Marc Valin --- celt/arch.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'celt') diff --git a/celt/arch.h b/celt/arch.h index 08b07db5..3845c3a0 100644 --- a/celt/arch.h +++ b/celt/arch.h @@ -73,6 +73,9 @@ __attribute__((noreturn)) void celt_fatal(const char *str, const char *file, int line) { fprintf (stderr, "Fatal (internal) error in %s, line %d: %s\n", file, line, str); +#if defined(_MSC_VER) + _set_abort_behavior( 0, _WRITE_ABORT_MSG); +#endif abort(); } #endif -- cgit v1.2.1