diff options
author | Marcus Asteborg <maastebo@microsoft.com> | 2020-06-07 21:16:12 -0700 |
---|---|---|
committer | Jean-Marc Valin <jmvalin@jmvalin.ca> | 2020-06-11 13:43:40 -0400 |
commit | fe00017a06ddf9314ce79a83a60ae6333769bb24 (patch) | |
tree | 7d84f78503db647d66c2a17c6b968fcd4b7cee6f /silk | |
parent | f014317fb10448e5f4b2f80eb819f6ffdf7815f5 (diff) | |
download | opus-fe00017a06ddf9314ce79a83a60ae6333769bb24.tar.gz |
Disable message box when calling abort(). The message box is causing hangs in tests.
Signed-off-by: Jean-Marc Valin <jmvalin@jmvalin.ca>
Diffstat (limited to 'silk')
-rw-r--r-- | silk/typedef.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/silk/typedef.h b/silk/typedef.h index 97b7e709..793d2c0c 100644 --- a/silk/typedef.h +++ b/silk/typedef.h @@ -67,6 +67,9 @@ __attribute__((noreturn)) static OPUS_INLINE void _silk_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(); } # define silk_assert(COND) {if (!(COND)) {silk_fatal("assertion failed: " #COND);}} |