Browse Source

Merge pull request #48 from spinda/windows-tests-fix

Disable system dialog when tests fail on Windows
Frank Denis 6 years ago
parent
commit
bb9781de59
1 changed files with 6 additions and 0 deletions
  1. 6 0
      tests/tests.c

+ 6 - 0
tests/tests.c

@@ -411,6 +411,12 @@ test_pwhash(void)
 int
 main(void)
 {
+#if defined(_WIN32)
+    // On Windows, disable the "Abort - Retry - Ignore" GUI dialog that otherwise pops up on
+    // assertion failure.
+    _set_abort_behavior(0, _WRITE_ABORT_MSG | _CALL_REPORTFAULT);
+#endif
+
     int ret;
 
     ret = hydro_init();