File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -303,10 +303,11 @@ final class SwiftDriverTests: XCTestCase {
303
303
#if os(Windows)
304
304
throw XCTSkip ( " TSCUtility.RelativePath failure " )
305
305
#else
306
- try withTemporaryDirectory { path in
307
- guard let cwd = localFileSystem. currentWorkingDirectory else {
308
- fatalError ( )
309
- }
306
+ guard let cwd = localFileSystem. currentWorkingDirectory else {
307
+ fatalError ( )
308
+ }
309
+
310
+ try withTemporaryDirectory ( dir: cwd, removeTreeOnDeinit: true ) { path in
310
311
let main = path. appending ( component: " main.swift " )
311
312
let util = path. appending ( component: " util.swift " )
312
313
let utilRelative = util. relative ( to: cwd)
@@ -1134,10 +1135,11 @@ final class SwiftDriverTests: XCTestCase {
1134
1135
#if os(Windows)
1135
1136
throw XCTSkip ( " TSCUtility.RelativePath failure " )
1136
1137
#else
1137
- try withTemporaryDirectory { path in
1138
- guard let cwd = localFileSystem. currentWorkingDirectory else {
1139
- fatalError ( )
1140
- }
1138
+ guard let cwd = localFileSystem. currentWorkingDirectory else {
1139
+ fatalError ( )
1140
+ }
1141
+
1142
+ try withTemporaryDirectory ( dir: cwd, removeTreeOnDeinit: true ) { path in
1141
1143
let outputFileMap = path. appending ( component: " outputFileMap.json " )
1142
1144
try localFileSystem. writeFileContents ( outputFileMap) {
1143
1145
$0 <<< """
You can’t perform that action at this time.
0 commit comments