@@ -344,7 +344,7 @@ final class ProcessInvocationTests : XCTestCase {
344344 let checkCwdAndEnvPathInCwd = FilePath ( root: nil , components: " . " , checkCwdAndEnvScriptComponent)
345345
346346 let currentWD = FileManager . default. currentDirectoryPath
347- defer { FileManager . default. changeCurrentDirectoryPath ( currentWD) }
347+ defer { _ = FileManager . default. changeCurrentDirectoryPath ( currentWD) }
348348
349349 await tempAsyncAssertThrowsError ( try await ProcessInvocation ( nonexistentScriptPath, signalsToProcess: [ ] ) . invokeAndGetRawOutput ( ) )
350350 await tempAsyncAssertThrowsError ( try await ProcessInvocation ( checkCwdAndEnvPath, usePATH: true , customPATH: nil , signalsToProcess: [ ] ) . invokeAndGetRawOutput ( ) )
@@ -401,13 +401,13 @@ final class ProcessInvocationTests : XCTestCase {
401401 await tempAsyncAssertNoThrow ( try await ProcessInvocation ( checkCwdAndEnvPath, usePATH: true , customPATH: nil , signalsToProcess: [ ] ) . invokeAndGetRawOutput ( ) )
402402 await tempAsyncAssertNoThrow ( try await ProcessInvocation ( checkCwdAndEnvPath, usePATH: true , signalsToProcess: [ ] ) . invokeAndGetRawOutput ( ) )
403403
404- FileManager . default. changeCurrentDirectoryPath ( Self . scriptsPath. string)
404+ _ = FileManager . default. changeCurrentDirectoryPath ( Self . scriptsPath. string)
405405 await tempAsyncAssertNoThrow ( try await ProcessInvocation ( checkCwdAndEnvPath, usePATH: true , customPATH: [ " " ] , signalsToProcess: [ ] ) . invokeAndGetRawOutput ( ) )
406406 await tempAsyncAssertNoThrow ( try await ProcessInvocation ( checkCwdAndEnvPathInCwd, usePATH: true , customPATH: nil , signalsToProcess: [ ] ) . invokeAndGetRawOutput ( ) )
407407 await tempAsyncAssertNoThrow ( try await ProcessInvocation ( checkCwdAndEnvPathInCwd, usePATH: false , signalsToProcess: [ ] ) . invokeAndGetRawOutput ( ) )
408408 /* Sadly the error we get is a file not found on macOS.
409409 * On Linux, the error makes sense. */
410- FileManager . default. changeCurrentDirectoryPath ( Self . filesPath. string)
410+ _ = FileManager . default. changeCurrentDirectoryPath ( Self . filesPath. string)
411411 await tempAsyncAssertThrowsError ( try await ProcessInvocation ( notExecutablePathInCwd, usePATH: false , signalsToProcess: [ ] ) . invokeAndGetRawOutput ( ) )
412412
413413 /* LINUXASYNC START --------- */
0 commit comments