@@ -21,7 +21,7 @@ import Testing
21
21
@Suite
22
22
fileprivate struct BuildCommandTests : CoreBasedTests {
23
23
/// Check compilation of a single file in C, ObjC and Swift, including the `uniquingSuffix` behavior.
24
- @Test ( . requireSDKs( . host) )
24
+ @Test ( . requireSDKs( . host) , . requireThreadSafeWorkingDirectory )
25
25
func singleFileCompile( ) async throws {
26
26
try await withTemporaryDirectory { tmpDirPath async throws -> Void in
27
27
let testWorkspace = try await TestWorkspace (
@@ -163,7 +163,7 @@ fileprivate struct BuildCommandTests: CoreBasedTests {
163
163
}
164
164
165
165
/// Check analyze of a single file.
166
- @Test ( . requireSDKs( . host) )
166
+ @Test ( . requireSDKs( . host) , . requireThreadSafeWorkingDirectory )
167
167
func singleFileAnalyze( ) async throws {
168
168
try await runSingleFileTask ( BuildParameters ( configuration: " Debug " , activeRunDestination: . host, overrides: [ " RUN_CLANG_STATIC_ANALYZER " : " YES " ] ) , buildCommand: . singleFileBuild( buildOnlyTheseFiles: [ Path ( " " ) ] ) , fileName: " File.m " ) { results, excludedTypes, _, _ in
169
169
results. consumeTasksMatchingRuleTypes ( excludedTypes)
@@ -173,7 +173,7 @@ fileprivate struct BuildCommandTests: CoreBasedTests {
173
173
}
174
174
175
175
/// Check preprocessing of a single file.
176
- @Test ( . requireSDKs( . host) )
176
+ @Test ( . requireSDKs( . host) , . requireThreadSafeWorkingDirectory )
177
177
func preprocessSingleFile( ) async throws {
178
178
try await runSingleFileTask ( BuildParameters ( configuration: " Debug " , activeRunDestination: . host) , buildCommand: . generatePreprocessedFile( buildOnlyTheseFiles: [ Path ( " " ) ] ) , fileName: " File.m " ) { results, excludedTypes, inputs, outputs in
179
179
results. consumeTasksMatchingRuleTypes ( excludedTypes)
@@ -254,7 +254,7 @@ fileprivate struct BuildCommandTests: CoreBasedTests {
254
254
}
255
255
256
256
/// Check behavior of the skip dependencies flag.
257
- @Test ( . requireSDKs( . host) )
257
+ @Test ( . requireSDKs( . host) , . requireThreadSafeWorkingDirectory )
258
258
func skipDependenciesFlag( ) async throws {
259
259
func runTest( skipDependencies: Bool , checkAuxiliaryTarget: ( _ results: BuildOperationTester . BuildResults ) throws -> Void ) async throws {
260
260
try await withTemporaryDirectory { tmpDirPath async throws -> Void in
0 commit comments