We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a0eee94 + 6bdae30 commit 9f5f980Copy full SHA for 9f5f980
TestFoundation/xdgTestHelper/main.swift
@@ -12,6 +12,9 @@ import SwiftFoundation
12
#else
13
import Foundation
14
#endif
15
+#if os(Windows)
16
+import WinSDK
17
+#endif
18
19
enum HelperCheckStatus : Int32 {
20
case ok = 0
@@ -222,7 +225,11 @@ case "--sleep":
222
225
223
226
case "--signal-self":
224
227
if let signalnum = arguments.next(), let signal = Int32(signalnum) {
228
229
+ TerminateProcess(GetCurrentProcess(), UINT(signal))
230
+#else
231
kill(ProcessInfo.processInfo.processIdentifier, signal)
232
233
}
234
exit(1)
235
0 commit comments