Skip to content

Commit d62ca6c

Browse files
committed
Mark a few tests as requiring the thread safe working directory
1 parent c4a4324 commit d62ca6c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Tests/SWBBuildSystemTests/BuildCommandTests.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import Testing
2121
@Suite
2222
fileprivate struct BuildCommandTests: CoreBasedTests {
2323
/// Check compilation of a single file in C, ObjC and Swift, including the `uniquingSuffix` behavior.
24-
@Test(.requireSDKs(.host))
24+
@Test(.requireSDKs(.host), .requireThreadSafeWorkingDirectory)
2525
func singleFileCompile() async throws {
2626
try await withTemporaryDirectory { tmpDirPath async throws -> Void in
2727
let testWorkspace = try await TestWorkspace(
@@ -163,7 +163,7 @@ fileprivate struct BuildCommandTests: CoreBasedTests {
163163
}
164164

165165
/// Check analyze of a single file.
166-
@Test(.requireSDKs(.host))
166+
@Test(.requireSDKs(.host), .requireThreadSafeWorkingDirectory)
167167
func singleFileAnalyze() async throws {
168168
try await runSingleFileTask(BuildParameters(configuration: "Debug", activeRunDestination: .host, overrides: ["RUN_CLANG_STATIC_ANALYZER": "YES"]), buildCommand: .singleFileBuild(buildOnlyTheseFiles: [Path("")]), fileName: "File.m") { results, excludedTypes, _, _ in
169169
results.consumeTasksMatchingRuleTypes(excludedTypes)
@@ -173,7 +173,7 @@ fileprivate struct BuildCommandTests: CoreBasedTests {
173173
}
174174

175175
/// Check preprocessing of a single file.
176-
@Test(.requireSDKs(.host))
176+
@Test(.requireSDKs(.host), .requireThreadSafeWorkingDirectory)
177177
func preprocessSingleFile() async throws {
178178
try await runSingleFileTask(BuildParameters(configuration: "Debug", activeRunDestination: .host), buildCommand: .generatePreprocessedFile(buildOnlyTheseFiles: [Path("")]), fileName: "File.m") { results, excludedTypes, inputs, outputs in
179179
results.consumeTasksMatchingRuleTypes(excludedTypes)
@@ -254,7 +254,7 @@ fileprivate struct BuildCommandTests: CoreBasedTests {
254254
}
255255

256256
/// Check behavior of the skip dependencies flag.
257-
@Test(.requireSDKs(.host))
257+
@Test(.requireSDKs(.host), .requireThreadSafeWorkingDirectory)
258258
func skipDependenciesFlag() async throws {
259259
func runTest(skipDependencies: Bool, checkAuxiliaryTarget: (_ results: BuildOperationTester.BuildResults) throws -> Void) async throws {
260260
try await withTemporaryDirectory { tmpDirPath async throws -> Void in

0 commit comments

Comments
 (0)