src: adjust windows abort behavior to make sense
Raising SIGABRT is handled in the CRT in windows, calling _exit() with ambiguous code "3" by default.
This adjustment to the abort behavior gives a more sane exit code on abort, by calling _exit() directly with code 134.
I added a test I used initially in reference to recreating #12271 (closed) but it may be moot to merge.
Fixes: #12271 (closed)
Refs: https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/abort
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
src