@@ -88,6 +88,7 @@ final class BuildSystemManagerTests: XCTestCase {
88
88
await assertEqual ( bsm. _cachedMainFile ( for: d) , nil )
89
89
}
90
90
91
+ @MainActor
91
92
func testSettingsMainFile( ) async throws {
92
93
let a = try DocumentURI ( string: " bsm:a.swift " )
93
94
let mainFiles = ManualMainFilesProvider ( [ a: [ a] ] )
@@ -112,6 +113,7 @@ final class BuildSystemManagerTests: XCTestCase {
112
113
try await fulfillmentOfOrThrow ( [ changed] )
113
114
}
114
115
116
+ @MainActor
115
117
func testSettingsMainFileInitialNil( ) async throws {
116
118
let a = try DocumentURI ( string: " bsm:a.swift " )
117
119
let mainFiles = ManualMainFilesProvider ( [ a: [ a] ] )
@@ -134,6 +136,7 @@ final class BuildSystemManagerTests: XCTestCase {
134
136
try await fulfillmentOfOrThrow ( [ changed] )
135
137
}
136
138
139
+ @MainActor
137
140
func testSettingsMainFileWithFallback( ) async throws {
138
141
let a = try DocumentURI ( string: " bsm:a.swift " )
139
142
let mainFiles = ManualMainFilesProvider ( [ a: [ a] ] )
@@ -164,6 +167,7 @@ final class BuildSystemManagerTests: XCTestCase {
164
167
try await fulfillmentOfOrThrow ( [ revert] )
165
168
}
166
169
170
+ @MainActor
167
171
func testSettingsMainFileInitialIntersect( ) async throws {
168
172
let a = try DocumentURI ( string: " bsm:a.swift " )
169
173
let b = try DocumentURI ( string: " bsm:b.swift " )
@@ -205,6 +209,7 @@ final class BuildSystemManagerTests: XCTestCase {
205
209
try await fulfillmentOfOrThrow ( [ changedBothA, changedBothB] )
206
210
}
207
211
212
+ @MainActor
208
213
func testSettingsMainFileUnchanged( ) async throws {
209
214
let a = try DocumentURI ( string: " bsm:a.swift " )
210
215
let b = try DocumentURI ( string: " bsm:b.swift " )
@@ -236,6 +241,7 @@ final class BuildSystemManagerTests: XCTestCase {
236
241
try await fulfillmentOfOrThrow ( [ changed] )
237
242
}
238
243
244
+ @MainActor
239
245
func testSettingsHeaderChangeMainFile( ) async throws {
240
246
let h = try DocumentURI ( string: " bsm:header.h " )
241
247
let cpp1 = try DocumentURI ( string: " bsm:main.cpp " )
@@ -292,6 +298,7 @@ final class BuildSystemManagerTests: XCTestCase {
292
298
try await fulfillmentOfOrThrow ( [ changed4] )
293
299
}
294
300
301
+ @MainActor
295
302
func testSettingsOneMainTwoHeader( ) async throws {
296
303
let h1 = try DocumentURI ( string: " bsm:header1.h " )
297
304
let h2 = try DocumentURI ( string: " bsm:header2.h " )
@@ -340,6 +347,7 @@ final class BuildSystemManagerTests: XCTestCase {
340
347
try await fulfillmentOfOrThrow ( [ changed1, changed2] )
341
348
}
342
349
350
+ @MainActor
343
351
func testSettingsChangedAfterUnregister( ) async throws {
344
352
let a = try DocumentURI ( string: " bsm:a.swift " )
345
353
let b = try DocumentURI ( string: " bsm:b.swift " )
@@ -384,6 +392,7 @@ final class BuildSystemManagerTests: XCTestCase {
384
392
try await fulfillmentOfOrThrow ( [ changedB] )
385
393
}
386
394
395
+ @MainActor
387
396
func testDependenciesUpdated( ) async throws {
388
397
let a = try DocumentURI ( string: " bsm:a.swift " )
389
398
let mainFiles = ManualMainFilesProvider ( [ a: [ a] ] )
@@ -434,6 +443,7 @@ private final actor ManualMainFilesProvider: MainFilesProvider {
434
443
}
435
444
436
445
/// A simple `BuildSystem` that wraps a dictionary, for testing.
446
+ @MainActor
437
447
class ManualBuildSystem : BuildSystem {
438
448
var projectRoot = try ! AbsolutePath ( validating: " / " )
439
449
0 commit comments