Skip to content

[test] Tweak some tests so that they run consistently on OS X 10.9 #19702

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 3 commits into from
Oct 22, 2018

Conversation

jrose-apple
Copy link
Contributor

The tests aren't all passing yet on Mac OS X 10.9, but this takes care of a bunch of the easy ones. The remaining ones are:

Swift(macosx-x86_64) :: Interpreter/class_resilience.swift
Swift(macosx-x86_64) :: Interpreter/generic_class.swift
Swift(macosx-x86_64) :: Interpreter/objc_extensions.swift
Swift(macosx-x86_64) :: Interpreter/subclass_existentials.swift
Swift(macosx-x86_64) :: stdlib/FloatingPoint.swift.gyb
Swift(macosx-x86_64) :: stdlib/SetTrapsObjC.swift

(validation)

Swift(macosx-x86_64) :: stdlib/AnyHashable.swift.gyb
Swift(macosx-x86_64) :: stdlib/Dictionary.swift
Swift(macosx-x86_64) :: stdlib/DictionaryTrapsObjC.swift
Swift(macosx-x86_64) :: stdlib/Set.swift

@jrose-apple
Copy link
Contributor Author

@swift-ci Please test

@@ -29,7 +29,6 @@ SubstringTests.test("Equality") {
expectEqual("fg" as String, s.suffix(2))

#if _runtime(_ObjC)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not sure why all these substring tests are guarded under _runtime(_ObjC). Is that a mistake, @milseman?

Copy link
Member

Choose a reason for hiding this comment

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

The only reason would be if they exercised grapheme breaking that the oldest Ubuntu LTS didn't support

Copy link
Member

Choose a reason for hiding this comment

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

(in which case availability would be a better tool for this)

@jrose-apple
Copy link
Contributor Author

I don't want to make these changes without review, but feel free to merge them while I'm gone if there are no problems.

Copy link
Contributor

@itaiferber itaiferber left a comment

Choose a reason for hiding this comment

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

Sorry I missed this — LGTM! :)

@jrose-apple jrose-apple merged commit e596e1f into swiftlang:master Oct 22, 2018
@jrose-apple jrose-apple deleted the who-remembers-mavericks branch October 22, 2018 22:47
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.

3 participants