enh(ci): disable debug dialog on Windows in the CI
Description
When an assertion failure happens in Windows debug, a debug dialog will appear with more information. This will block the unit test, which will timeout in 8 minutes. Moreover, nothing is logged in the console, so physical access to the CI machine is required to learn more about the problem, and this isn't possible for half of our team. This is a problem in debugging coretest.bat in particular, which randomly fails in the CI.
Proposal
There are some functions in Windows API which allow to disable this behavior and print the message in the console. !650 (diffs) and !705 (diffs) can be taken as examples.
Functional specifications
Windows debug dialog doesn't appear anymore in the CI, assertion failure messages appear in the console instead.
Technical specifications
Use the Windows API functions in cmake/build/cppunit_main.cpp to disable debug dialogs during unit tests if the environment variable DISABLE_ABORT_DIALOG
is set.
Test plan
Run the CI.