You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[release/6.0] The signal enum in the native library should match the managed code. (#58682)
* The signal enum in the native library should match the managed code.
* PosixSignalRegistrationTests.Unix: validate signal pal mapping (#58711)
* PosixSignalRegistrationTests.Unix: validate signal pal mapping
* Use InvariantCulture for pid ToString
* Invoke kill through shell.
* Remove InvariantCulture
Co-authored-by: James Truher <jimtru@microsoft.com>
Co-authored-by: Tom Deseyn <tom.deseyn@gmail.com>
Copy file name to clipboardExpand all lines: src/libraries/System.Runtime.InteropServices/tests/System/Runtime/InteropServices/PosixSignalRegistrationTests.Unix.cs
+12-1Lines changed: 12 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -2,6 +2,8 @@
2
2
// The .NET Foundation licenses this file to you under the MIT license.
3
3
4
4
usingXunit;
5
+
usingSystem.Diagnostics;
6
+
usingSystem.Globalization;
5
7
usingSystem.Threading;
6
8
usingSystem.Runtime.InteropServices;
7
9
usingSystem.Runtime.CompilerServices;
@@ -57,7 +59,16 @@ public void SignalHandlerCalledForKnownSignals(PosixSignal s)
57
59
semaphore.Release();
58
60
});
59
61
60
-
kill(signal);
62
+
// Use 'kill' command with signal name to validate the signal pal mapping.
0 commit comments