Some improvements to CI (#121)

* Removing option as not supported by CI

Will migrate CI forward and readd.

* Made failure for clang-format errors.

* Improved handling of errors during CI.

* Prevent failures escaping.

* Clang-format fix

* Remove stderr

* Update azure-pipelines.yml

Co-Authored-By: Paul Liétar <plietar@users.noreply.github.com>

Co-authored-by: Paul Liétar <plietar@users.noreply.github.com>
This commit is contained in:
Matthew Parkinson
2020-02-03 21:01:06 +00:00
committed by GitHub
parent 7e22d302ad
commit afc77d9a0a
3 changed files with 12 additions and 4 deletions

View File

@@ -70,7 +70,6 @@ void _cdecl error(int signal)
_exit(1);
}
# define CALL_LAST 0
LONG WINAPI VectoredHandler(struct _EXCEPTION_POINTERS* ExceptionInfo)
{
UNUSED(ExceptionInfo);
@@ -89,7 +88,11 @@ void setup()
_set_abort_behavior(0, _WRITE_ABORT_MSG);
signal(SIGABRT, error);
AddVectoredExceptionHandler(CALL_LAST, VectoredHandler);
// If we have an unhandled exception print a stack trace.
SetUnhandledExceptionFilter(VectoredHandler);
// Disable OS level dialog boxes during CI.
SetErrorMode(SEM_FAILCRITICALERRORS | SEM_NOGPFAULTERRORBOX);
}
#else
void setup() {}