Skip to content

Commit 527f6aa

Browse files
committed
Add a working-directory argument to incremental tests' runDriver routine.
Otherwise they deposit build products into the package root (e.g. `main.o`, `other.o`, etc.).
1 parent 8126c2f commit 527f6aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Tests/SwiftDriverTests/IncrementalCompilationTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ final class NonincrementalCompilationTests: XCTestCase {
267267
$0 <<< "let bar = 2"
268268
}
269269
try assertDriverDiagnostics(args: [
270-
"swiftc", "-module-name", "theModule",
270+
"swiftc", "-module-name", "theModule", "-working-directory", path.pathString,
271271
main.pathString, other.pathString
272272
] + otherArgs) {driver, verifier in
273273
verifier.forbidUnexpected(.error, .warning, .note, .remark, .ignored)

0 commit comments

Comments
 (0)