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 9e38d01 + 0694ccd commit f932319Copy full SHA for f932319
Tests/SubprocessTests/SubprocessTests+Windows.swift
@@ -790,7 +790,8 @@ extension SubprocessWindowsTests {
790
// Wait for the process to finish
791
WaitForSingleObject(processHandle, INFINITE)
792
793
- let data = try await readFd.readUntilEOF(upToLength: 5)
+ // Up to 10 characters because Windows process IDs are DWORDs (UInt32), whose max value is 10 digits.
794
+ let data = try await readFd.readUntilEOF(upToLength: 10)
795
let resultPID = try #require(
796
String(data: data, encoding: .utf8)
797
).trimmingCharacters(in: .whitespacesAndNewlines)
0 commit comments