Skip to content

Commit e99d47e

Browse files
authored
[6.2] Add signal handler for SIGABRT_COMPAT on Windows. (#1059)
- **Explanation**: Make sure all public signals on Windows are handled correctly in exit tests. - **Scope**: Windows exit tests - **Issues**: N/A - **Original PRs**: #1056 - **Risk**: Low - **Testing**: CI jobs - **Reviewers**: @briancroom @stmontgomery @compnerd
1 parent 3cd81d0 commit e99d47e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Testing/ExitTests/ExitTest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ extension ExitTest {
218218
// exit code that is unlikely to be encountered "in the wild" and which
219219
// encodes the caught signal. Corresponding code in the parent process looks
220220
// for these special exit codes and translates them back to signals.
221-
for sig in [SIGINT, SIGILL, SIGFPE, SIGSEGV, SIGTERM, SIGBREAK, SIGABRT] {
221+
for sig in [SIGINT, SIGILL, SIGFPE, SIGSEGV, SIGTERM, SIGBREAK, SIGABRT, SIGABRT_COMPAT] {
222222
_ = signal(sig) { sig in
223223
_Exit(STATUS_SIGNAL_CAUGHT_BITS | sig)
224224
}

0 commit comments

Comments
 (0)