Skip to content

Get Android to parity with upstream driver and enable remaining tests #720

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 2, 2021

Conversation

finagolfin
Copy link
Member

This is the only remaining Android difference with the C++ driver. The new test was tested natively on Android with my Swift 5.4.1 toolchain package in the Termux app, all tests passed.

@@ -1808,6 +1808,31 @@ final class SwiftDriverTests: XCTestCase {
}
#endif
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These linux tests above are disabled on linux, mistake or deliberate decision?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like they are enabled, only on Linux?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the enclosing #if os(macOS) conditional compile at the top of this test.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh I see. Hmm :/

@@ -105,6 +105,7 @@ import TSCBasic
targetTriple: Triple,
isShared: Bool
) throws -> String {
return "libclang_rt.\(sanitizer.libraryName)-\(targetTriple.archName).a"
let environment = (targetTriple.environment == .android) ? "-android" : ""
return "libclang_rt.\(sanitizer.libraryName)-\(targetTriple.archName)\(environment).a"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@finagolfin
Copy link
Member Author

I think this just needs to run through the CI and it can be merged?

@DougGregor
Copy link
Member

@swift-ci please test

@DougGregor DougGregor merged commit eb17e10 into swiftlang:main Jul 2, 2021
@finagolfin finagolfin deleted the droid branch July 3, 2021 01:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants