@@ -31,7 +31,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
31
31
32
32
func testNoPackage( ) async throws {
33
33
let fs = InMemoryFileSystem ( )
34
- try await withTemporaryDirectory ( removeTreeOnDeinit : true ) { tempDir in
34
+ try await withTestScratchDir { tempDir in
35
35
try fs. createFiles (
36
36
root: tempDir,
37
37
files: [
@@ -53,7 +53,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
53
53
54
54
func testUnparsablePackage( ) async throws {
55
55
let fs = localFileSystem
56
- try await withTemporaryDirectory ( removeTreeOnDeinit : true ) { tempDir in
56
+ try await withTestScratchDir { tempDir in
57
57
try fs. createFiles (
58
58
root: tempDir,
59
59
files: [
@@ -80,7 +80,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
80
80
81
81
func testNoToolchain( ) async throws {
82
82
let fs = localFileSystem
83
- try await withTemporaryDirectory ( removeTreeOnDeinit : true ) { tempDir in
83
+ try await withTestScratchDir { tempDir in
84
84
try fs. createFiles (
85
85
root: tempDir,
86
86
files: [
@@ -108,7 +108,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
108
108
func testBasicSwiftArgs( ) async throws {
109
109
// FIXME: should be possible to use InMemoryFileSystem.
110
110
let fs = localFileSystem
111
- try await withTemporaryDirectory ( removeTreeOnDeinit : true ) { tempDir in
111
+ try await withTestScratchDir { tempDir in
112
112
try fs. createFiles (
113
113
root: tempDir,
114
114
files: [
@@ -168,7 +168,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
168
168
func testBuildSetup( ) async throws {
169
169
// FIXME: should be possible to use InMemoryFileSystem.
170
170
let fs = localFileSystem
171
- try await withTemporaryDirectory ( removeTreeOnDeinit : true ) { tempDir in
171
+ try await withTestScratchDir { tempDir in
172
172
try fs. createFiles (
173
173
root: tempDir,
174
174
files: [
@@ -214,7 +214,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
214
214
func testManifestArgs( ) async throws {
215
215
// FIXME: should be possible to use InMemoryFileSystem.
216
216
let fs = localFileSystem
217
- try await withTemporaryDirectory ( removeTreeOnDeinit : true ) { tempDir in
217
+ try await withTestScratchDir { tempDir in
218
218
try fs. createFiles (
219
219
root: tempDir,
220
220
files: [
@@ -247,7 +247,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
247
247
func testMultiFileSwift( ) async throws {
248
248
// FIXME: should be possible to use InMemoryFileSystem.
249
249
let fs = localFileSystem
250
- try await withTemporaryDirectory ( removeTreeOnDeinit : true ) { tempDir in
250
+ try await withTestScratchDir { tempDir in
251
251
try fs. createFiles (
252
252
root: tempDir,
253
253
files: [
@@ -285,7 +285,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
285
285
func testMultiTargetSwift( ) async throws {
286
286
// FIXME: should be possible to use InMemoryFileSystem.
287
287
let fs = localFileSystem
288
- try await withTemporaryDirectory ( removeTreeOnDeinit : true ) { tempDir in
288
+ try await withTestScratchDir { tempDir in
289
289
try fs. createFiles (
290
290
root: tempDir,
291
291
files: [
@@ -351,7 +351,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
351
351
func testUnknownFile( ) async throws {
352
352
// FIXME: should be possible to use InMemoryFileSystem.
353
353
let fs = localFileSystem
354
- try await withTemporaryDirectory ( removeTreeOnDeinit : true ) { tempDir in
354
+ try await withTestScratchDir { tempDir in
355
355
try fs. createFiles (
356
356
root: tempDir,
357
357
files: [
@@ -387,7 +387,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
387
387
func testBasicCXXArgs( ) async throws {
388
388
// FIXME: should be possible to use InMemoryFileSystem.
389
389
let fs = localFileSystem
390
- try await withTemporaryDirectory ( removeTreeOnDeinit : true ) { tempDir in
390
+ try await withTestScratchDir { tempDir in
391
391
try fs. createFiles (
392
392
root: tempDir,
393
393
files: [
@@ -481,7 +481,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
481
481
func testDeploymentTargetSwift( ) async throws {
482
482
// FIXME: should be possible to use InMemoryFileSystem.
483
483
let fs = localFileSystem
484
- try await withTemporaryDirectory ( removeTreeOnDeinit : true ) { tempDir in
484
+ try await withTestScratchDir { tempDir in
485
485
try fs. createFiles (
486
486
root: tempDir,
487
487
files: [
@@ -524,7 +524,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
524
524
func testSymlinkInWorkspaceSwift( ) async throws {
525
525
// FIXME: should be possible to use InMemoryFileSystem.
526
526
let fs = localFileSystem
527
- try await withTemporaryDirectory ( removeTreeOnDeinit : true ) { tempDir in
527
+ try await withTestScratchDir { tempDir in
528
528
try fs. createFiles (
529
529
root: tempDir,
530
530
files: [
@@ -579,7 +579,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
579
579
func testSymlinkInWorkspaceCXX( ) async throws {
580
580
// FIXME: should be possible to use InMemoryFileSystem.
581
581
let fs = localFileSystem
582
- try await withTemporaryDirectory ( removeTreeOnDeinit : true ) { tempDir in
582
+ try await withTestScratchDir { tempDir in
583
583
try fs. createFiles (
584
584
root: tempDir,
585
585
files: [
@@ -629,7 +629,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
629
629
func testSwiftDerivedSources( ) async throws {
630
630
// FIXME: should be possible to use InMemoryFileSystem.
631
631
let fs = localFileSystem
632
- try await withTemporaryDirectory ( removeTreeOnDeinit : true ) { tempDir in
632
+ try await withTestScratchDir { tempDir in
633
633
try fs. createFiles (
634
634
root: tempDir,
635
635
files: [
@@ -670,7 +670,7 @@ final class SwiftPMWorkspaceTests: XCTestCase {
670
670
671
671
func testNestedInvalidPackageSwift( ) async throws {
672
672
let fs = InMemoryFileSystem ( )
673
- try await withTemporaryDirectory ( removeTreeOnDeinit : true ) { tempDir in
673
+ try await withTestScratchDir { tempDir in
674
674
try fs. createFiles (
675
675
root: tempDir,
676
676
files: [
0 commit comments