Skip to content

Commit 61700b5

Browse files
author
Šimon Javora
committed
Added explicit target to SWIFTC_MAXIMUM_DETERMINISM test to hopefully make it pass on Linux.
1 parent 160cf99 commit 61700b5

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Tests/SwiftDriverTests/SwiftDriverTests.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,13 @@ final class SwiftDriverTests: XCTestCase {
166166

167167
XCTAssertNil(try Driver(args: ["swiftc", "-j", "0"]).numParallelJobs)
168168

169-
XCTAssertEqual(try Driver(args: ["swiftc", "-j", "4"], env: ["SWIFTC_MAXIMUM_DETERMINISM": "1"]).numParallelJobs, 1)
169+
XCTAssertEqual(
170+
try Driver(
171+
args: ["swiftc", "-j", "4", "-target", "x86_64-apple-macosx10.15"],
172+
env: ["SWIFTC_MAXIMUM_DETERMINISM": "1"]
173+
).numParallelJobs,
174+
1
175+
)
170176
}
171177

172178
func testMultithreadingDiagnostics() throws {

0 commit comments

Comments
 (0)