Skip to content

Commit 9987a23

Browse files
committed
Tests: clean up some bleeding whitespace
1 parent 3925060 commit 9987a23

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

Tests/SwiftDriverTests/SwiftDriverTests.swift

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,7 +1761,7 @@ final class SwiftDriverTests: XCTestCase {
17611761
XCTAssertFalse(resolvedArgs.contains { $0.hasPrefix("@") })
17621762
}
17631763
}
1764-
1764+
17651765
func testResponseFileDeterministicNaming() throws {
17661766
#if !os(macOS)
17671767
try XCTSkipIf(true, "Test assumes macOS response file quoting behavior")
@@ -6926,7 +6926,7 @@ final class SwiftDriverTests: XCTestCase {
69266926
XCTAssertJobInvocationMatches(compileJob, .flag("-disable-objc-interop"))
69276927
XCTAssertFalse(linkJob.commandLine.contains(.flag("-force_load")))
69286928
}
6929-
6929+
69306930
do {
69316931
var driver = try Driver(args: [
69326932
"swiftc",
@@ -6951,15 +6951,15 @@ final class SwiftDriverTests: XCTestCase {
69516951
"-tools-directory",
69526952
"/Tools/swift.xctoolchain/usr/bin",
69536953
], env: env)
6954-
6954+
69556955
let jobs = try driver.planBuild()
69566956
let linkJob = try jobs.findJob(.link)
69576957
let invalidPath = try VirtualPath(path: "/Tools/swift.xctoolchain/usr/lib/swift")
69586958
let invalid = linkJob.commandLine.contains(.responseFilePath(invalidPath))
69596959
XCTAssertFalse(invalid) // ensure the driver does not emit invalid responseFilePaths to the clang invocation
69606960
XCTAssertFalse(linkJob.commandLine.joinedUnresolvedArguments.contains("swiftrt.o"))
69616961
}
6962-
6962+
69636963
// Embedded Wasm compile job
69646964
do {
69656965
var driver = try Driver(args: ["swiftc", "-target", "wasm32-none-none-wasm", "test.swift", "-enable-experimental-feature", "Embedded", "-wmo", "-o", "a.wasm"], env: env)
@@ -7251,7 +7251,7 @@ final class SwiftDriverTests: XCTestCase {
72517251
})
72527252
}
72537253
}
7254-
7254+
72557255
func testRelativeInputs() throws {
72567256
do {
72577257
// Inputs with relative paths with no -working-directory flag should remain relative
@@ -7283,7 +7283,7 @@ final class SwiftDriverTests: XCTestCase {
72837283
XCTAssertTrue(compileJob.commandLine.contains(subsequence: ["-resource-dir", try toPathOption("/foo/bar/relresourcepath", isRelative: false)]))
72847284
XCTAssertTrue(compileJob.commandLine.contains(subsequence: ["-sdk", try toPathOption("/foo/bar/relsdkpath", isRelative: false)]))
72857285
}
7286-
7286+
72877287
try withTemporaryFile { fileMapFile in
72887288
let outputMapContents: ByteString = """
72897289
{
@@ -7297,7 +7297,7 @@ final class SwiftDriverTests: XCTestCase {
72977297
}
72987298
"""
72997299
try localFileSystem.writeFileContents(fileMapFile.path, bytes: outputMapContents)
7300-
7300+
73017301
// Inputs with relative paths should be found in output file maps
73027302
var driver = try Driver(args: ["swiftc",
73037303
"-target", "arm64-apple-ios13.1",
@@ -7308,7 +7308,7 @@ final class SwiftDriverTests: XCTestCase {
73087308
XCTAssertEqual(compileJob.kind, .compile)
73097309
XCTAssertTrue(compileJob.commandLine.contains(subsequence: ["-o", try toPathOption("/tmp/foo/.build/x86_64-apple-macosx/debug/foo.build/foo.o", isRelative: false)]))
73107310
}
7311-
7311+
73127312
try withTemporaryFile { fileMapFile in
73137313
let outputMapContents: ByteString = """
73147314
{
@@ -7322,7 +7322,7 @@ final class SwiftDriverTests: XCTestCase {
73227322
}
73237323
"""
73247324
try localFileSystem.writeFileContents(fileMapFile.path, bytes: outputMapContents)
7325-
7325+
73267326
// Inputs with relative paths and working-dir should use absolute paths in output file maps
73277327
var driver = try Driver(args: ["swiftc",
73287328
"-target", "arm64-apple-ios13.1",

0 commit comments

Comments
 (0)