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.
1 parent 31e6061 commit 503f2a9Copy full SHA for 503f2a9
Tests/ArgumentParserExampleTests/CountLinesExampleTests.swift
@@ -37,6 +37,26 @@ final class CountLinesExampleTests: XCTestCase {
37
"""
38
try AssertExecuteCommand(command: "count-lines -h", expected: helpText)
39
}
40
+
41
+ @available(macOS 12, *)
42
+ func testPrintEnv() throws {
43
+ let process = Process()
44
+ process.launchPath = "/usr/bin/env"
45
46
+ let output = Pipe()
47
+ process.standardOutput = output
48
49
+ try! process.run()
50
+ process.waitUntilExit()
51
52
+ let outputActual = String(
53
+ data: output.fileHandleForReading.readDataToEndOfFile(),
54
+ encoding: .utf8)!
55
+ print("ENV:")
56
+ print(outputActual)
57
58
+ XCTFail()
59
+ }
60
61
62
#endif
0 commit comments