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
Copy file name to clipboardExpand all lines: Sources/Testing/ExitTests/SpawnProcess.swift
+35-15Lines changed: 35 additions & 15 deletions
Original file line number
Diff line number
Diff line change
@@ -123,11 +123,27 @@ func spawnExecutable(
123
123
guardlet fd else{
124
124
throwSystemError(description:"A child process cannot inherit a file handle without an associated file descriptor. Please file a bug report at https://github.com/swiftlang/swift-testing/issues/new")
try fileHandle.withUnsafeWindowsHANDLE{ windowsHANDLE in
221
235
guardlet windowsHANDLE else{
222
236
throwSystemError(description:"A child process cannot inherit a file handle without an associated Windows handle. Please file a bug report at https://github.com/swiftlang/swift-testing/issues/new")
223
237
}
224
-
outWindowsHANDLE = windowsHANDLE
238
+
239
+
// Ensure the file handle can be inherited by the child process.
throwSystemError(description:"Cannot set whether a file handle is inherited unless it is backed by a file descriptor. Please file a bug report at https://github.com/swiftlang/swift-testing/issues/new")
throwSystemError(description:"Cannot set whether a file handle is inherited unless it is backed by a Windows file handle. Please file a bug report at https://github.com/swiftlang/swift-testing/issues/new")
0 commit comments