Skip to content

Platform check for TestFoundation failures for Apple Swift 5 Toolchain on PowerPC64LE(SR-10255) #2058

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
Apr 10, 2019

Conversation

sarveshtamba
Copy link
Contributor

In the file "TestFoundation/TestNSNumber.swift" I could see several sections of code having XCTAssertEqual within conditional checks for architectures and OS. For e.g.:-
#if !(os(Linux) && (arch(arm) || arch(powerpc64) || arch(powerpc64le)))
// Linux/arm and Linux/power chars are unsigned, so Int8 in Swift, until this issue is resolved, these tests will always fail.
XCTAssertEqual(NSNumber(value: Int8(-37)).floatValue, Float(-37))
#endif

I have introduced this PR with similar checks for powerpc64le(followed by SR number in comments) for the 2 test failures reported in this SR. This would help move ahead and make some more progress on powerpc64le, until this issue is resolved by the original contributor of the 2 tests or any other member familiar with the changes.

@sarveshtamba
Copy link
Contributor Author

@spevans can someone please review and approve this PR?

@sarveshtamba
Copy link
Contributor Author

@compnerd needed help to review this PR, please suggest who can review this?

@compnerd
Copy link
Member

compnerd commented Apr 5, 2019

CC: @millenomi

@spevans
Copy link
Contributor

spevans commented Apr 8, 2019

@swift-ci test

1 similar comment
@spevans
Copy link
Contributor

spevans commented Apr 9, 2019

@swift-ci test

@sarveshtamba
Copy link
Contributor Author

Any updates on this one?

Copy link
Contributor

@spevans spevans left a comment

Choose a reason for hiding this comment

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

This looks fine now, could you just squash it down to 1 commit and then it can be merged

…n on PowerPC64LE(SR-10255)

Platform check for TestFoundation failures for Apple Swift 5 Toolchain on PowerPC64LE(SR-10255)
@sarveshtamba
Copy link
Contributor Author

@spevans I have squashed the commits down to 1 single commit, please go ahead and merge.

@spevans
Copy link
Contributor

spevans commented Apr 10, 2019

@swift-ci test and merge

@millenomi
Copy link
Contributor

@swift-ci please test and merge

@swift-ci swift-ci merged commit ac845c4 into swiftlang:master Apr 10, 2019
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.

5 participants