Handle SIGTERM shutdown signal to fire the cancellation #5607
+41
−1
Azure Pipelines / microsoft.testfx (Build MacOS Debug)
failed
May 20, 2025 in 4m 11s
Build MacOS Debug failed
Annotations
azure-pipelines / microsoft.testfx (Build MacOS Debug)
src/Platform/Microsoft.Testing.Platform/Services/CTRLPlusCCancellationTokenSource.cs#L33
src/Platform/Microsoft.Testing.Platform/Services/CTRLPlusCCancellationTokenSource.cs(33,40): error CA1416: (NETCORE_ENGINEERING_TELEMETRY=Build) This call site is reachable on all platforms. 'PosixSignalRegistration.Create(PosixSignal, Action<PosixSignalContext>)' is unsupported on: 'android', 'browser', 'ios', 'tvos'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
azure-pipelines / microsoft.testfx (Build MacOS Debug)
src/Platform/Microsoft.Testing.Platform/Services/CTRLPlusCCancellationTokenSource.cs#L15
src/Platform/Microsoft.Testing.Platform/Services/CTRLPlusCCancellationTokenSource.cs(15,38): error IDE0044: (NETCORE_ENGINEERING_TELEMETRY=Build) Make field readonly (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044)
azure-pipelines / microsoft.testfx (Build MacOS Debug)
src/Platform/Microsoft.Testing.Platform/Services/CTRLPlusCCancellationTokenSource.cs#L29
src/Platform/Microsoft.Testing.Platform/Services/CTRLPlusCCancellationTokenSource.cs(29,30): error CS0117: (NETCORE_ENGINEERING_TELEMETRY=Build) 'OperatingSystem' does not contain a definition for 'IsWasi'
azure-pipelines / microsoft.testfx (Build MacOS Debug)
src/Platform/Microsoft.Testing.Platform/Services/CTRLPlusCCancellationTokenSource.cs#L15
src/Platform/Microsoft.Testing.Platform/Services/CTRLPlusCCancellationTokenSource.cs(15,38): error IDE0044: (NETCORE_ENGINEERING_TELEMETRY=Build) Make field readonly (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044)
azure-pipelines / microsoft.testfx (Build MacOS Debug)
src/Platform/Microsoft.Testing.Platform/Services/CTRLPlusCCancellationTokenSource.cs#L33
src/Platform/Microsoft.Testing.Platform/Services/CTRLPlusCCancellationTokenSource.cs(33,40): error CA1416: (NETCORE_ENGINEERING_TELEMETRY=Build) This call site is reachable on all platforms. 'PosixSignalRegistration.Create(PosixSignal, Action<PosixSignalContext>)' is unsupported on: 'android', 'browser', 'ios', 'tvos'. (https://learn.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1416)
Loading