Skip to content

Commit 023069c

Browse files
authored
Merge pull request #375 from apple/revert-374-tempDir
Revert "Ensure temp dir is different between testIncremental and testIncrementalDiagnostics to see if that fixes the test breakage in CI"
2 parents a822152 + ea0d208 commit 023069c

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

Tests/SwiftDriverTests/IncrementalCompilationTests.swift

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -341,12 +341,7 @@ final class IncrementalCompilationTests: XCTestCase {
341341
}
342342

343343
override func setUp() {
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}
344+
self.tempDir = try! withTemporaryDirectory(removeTreeOnDeinit: false) {$0}
350345
try! localFileSystem.createDirectory(derivedDataPath)
351346
writeOutputFileMapData(module: module,
352347
inputPaths: inputPathsAndContents.map {$0.0},
@@ -360,8 +355,11 @@ final class IncrementalCompilationTests: XCTestCase {
360355
}
361356
}
362357

358+
// FIXME: why does it fail on Linux in CI?
363359
func testIncrementalDiagnostics() throws {
360+
#if !os(Linux)
364361
try testIncremental(checkDiagnostics: true)
362+
#endif
365363
}
366364

367365
func testIncremental() throws {

0 commit comments

Comments
 (0)