Skip to content

Commit 8855aaa

Browse files
committed
[Tests] Remove test of static linking against musl.
We don't support plain musl for now, so don't bother trying to do a static linking test for it. rdar://138021505
1 parent 6af4c7d commit 8855aaa

File tree

1 file changed

+0
-33
lines changed

1 file changed

+0
-33
lines changed

Tests/SwiftDriverTests/SwiftDriverTests.swift

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2320,39 +2320,6 @@ final class SwiftDriverTests: XCTestCase {
23202320
XCTAssertFalse(cmd.contains(.flag("-dylib")))
23212321
XCTAssertFalse(cmd.contains(.flag("-shared")))
23222322
}
2323-
2324-
do {
2325-
// executable linking linux static stdlib with musl
2326-
var driver = try Driver(args: commonArgs + [
2327-
"-emit-executable", "-Osize", "-static-stdlib", "-static-executable", "-target", "x86_64-unknown-linux-musl"
2328-
], env: env)
2329-
let plannedJobs = try driver.planBuild()
2330-
2331-
XCTAssertEqual(plannedJobs.count, 4)
2332-
2333-
let autolinkExtractJob = plannedJobs[2]
2334-
XCTAssertEqual(autolinkExtractJob.kind, .autolinkExtract)
2335-
2336-
let autolinkCmd = autolinkExtractJob.commandLine
2337-
XCTAssertTrue(commandContainsTemporaryPath(autolinkCmd, "foo.o"))
2338-
XCTAssertTrue(commandContainsTemporaryPath(autolinkCmd, "bar.o"))
2339-
XCTAssertTrue(commandContainsTemporaryPath(autolinkCmd, "Test.autolink"))
2340-
2341-
let linkJob = plannedJobs[3]
2342-
let cmd = linkJob.commandLine
2343-
XCTAssertTrue(cmd.contains(.flag("-o")))
2344-
XCTAssertTrue(commandContainsTemporaryPath(cmd, "foo.o"))
2345-
XCTAssertTrue(commandContainsTemporaryPath(cmd, "bar.o"))
2346-
XCTAssertTrue(cmd.contains(.flag("--start-group")))
2347-
XCTAssertTrue(cmd.contains(.flag("--end-group")))
2348-
XCTAssertTrue(cmd.contains(.flag("-Os")))
2349-
print("Static stdlib with musl link job: \(cmd.joinedUnresolvedArguments)")
2350-
//XCTAssertTrue(cmd.contains(.flag("-static")))
2351-
XCTAssertEqual(linkJob.outputs[0].file, try toPath("Test"))
2352-
2353-
XCTAssertFalse(cmd.contains(.flag("-dylib")))
2354-
XCTAssertFalse(cmd.contains(.flag("-shared")))
2355-
}
23562323
#endif
23572324

23582325
do {

0 commit comments

Comments
 (0)