Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Conversation

tvolkert
Copy link
Contributor

This updates all code that throws FileSystemException to properly set
the corresponding osError.errorCode, which allows us to update the
tests to expect the error code rather than the error message. This in turn
allows the tests to be more robust across locales and platforms.

To deal with the fact that different platforms have different errno values
(which will be exposed and tested via LocalFileSystem), this change
creates an ErrorCodes class with static getters for the set of errno
values that are common to all platforms. This code can be removed once
dart-lang/sdk#28860 is resolved and live.

Fixes dart-lang/tools#613

@tvolkert
Copy link
Contributor Author

@goderbauer

Copy link
Contributor

@goderbauer goderbauer left a comment

Choose a reason for hiding this comment

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

LGTM!

@tvolkert tvolkert merged commit d6795a9 into dart-archive:master Feb 22, 2017
@tvolkert tvolkert deleted the windows branch February 22, 2017 21:20
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Update tests to expect errno
2 participants