Skip to content

SR-11922: [FileHandle] Make the function signature the same as DarwinFoundation. #2582

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

Conversation

YOCKOW
Copy link
Member

@YOCKOW YOCKOW commented Dec 9, 2019

Since func truncateFile(atOffset offset: UInt64) has been deprecated, new function is introduced. However, the signatures are different between DarwinFoundation and SwiftFoundation.
Resolves SR-11922.

@spevans
Copy link
Contributor

spevans commented Dec 9, 2019

@swift-ci test linux

@spevans
Copy link
Contributor

spevans commented Dec 9, 2019

@YOCKOW The old methods still needs to be tested so I would suggest restoring the original test_truncateFile and renaming the new one to test_throwingTruncateFile or something.

@YOCKOW
Copy link
Member Author

YOCKOW commented Dec 10, 2019

@spevans
Thank you for pointing that out. I'll fix it and rebase.

Since `func truncateFile(atOffset offset: UInt64)` has been deprecated, new function is introduced. However, the signatures are different between DarwinFoundation and SwiftFoundation.
Resolves https://bugs.swift.org/browse/SR-11922 .
@YOCKOW
Copy link
Member Author

YOCKOW commented Dec 10, 2019

Rebased.
Now the original tests remain and just new tests for func truncate(atOffset:) have been added.

@spevans
Copy link
Contributor

spevans commented Dec 10, 2019

@swift-ci test linux

1 similar comment
@spevans
Copy link
Contributor

spevans commented Dec 10, 2019

@swift-ci test linux

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.

2 participants