File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed
Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -341,7 +341,12 @@ final class IncrementalCompilationTests: XCTestCase {
341341 }
342342
343343 override func setUp( ) {
344- self . tempDir = try ! withTemporaryDirectory ( removeTreeOnDeinit: false ) { $0}
344+ // Prefix directory with test name to ensure directory name is unique when
345+ // testing in parallel.
346+ // name returns e.g. "[SwiftDriverTests.IncrementalCompilationTests testIncremental]
347+ // but we just want "testIncremental"
348+ let testName = name. split ( separator: " " ) . last!. dropLast ( )
349+ self . tempDir = try ! withTemporaryDirectory ( prefix: String ( testName) , removeTreeOnDeinit: false ) { $0}
345350 try ! localFileSystem. createDirectory ( derivedDataPath)
346351 writeOutputFileMapData ( module: module,
347352 inputPaths: inputPathsAndContents. map { $0. 0 } ,
@@ -355,11 +360,8 @@ final class IncrementalCompilationTests: XCTestCase {
355360 }
356361 }
357362
358- // FIXME: why does it fail on Linux in CI?
359363 func testIncrementalDiagnostics( ) throws {
360- #if !os(Linux)
361364 try testIncremental ( checkDiagnostics: true )
362- #endif
363365 }
364366
365367 func testIncremental( ) throws {
You can’t perform that action at this time.
0 commit comments