Skip to content

Conversation

gmaclennan
Copy link

This PR adds cross-platform travis tests for osx and Windows to check for cross-platform filesystem peculiarities.

On Windows there is a breaking test for trying to create raf for a directory. On Linux and Mac fs.open() on a directory returns an error, but on Windows it returns a file descriptor (https://nodejs.org/api/fs.html#fs_file_system_flags).

This PR fixes the breaking test by adding an additional check on open to check a fd is not a directory.

@gmaclennan
Copy link
Author

Also adds an additional (passing) test for checking the destroy method works on Windows (it does) - I've been doing some debugging around close functions and cleanup on WIndows.

@okdistribute
Copy link

can we merge this in?

mafintosh added a commit that referenced this pull request Aug 19, 2022
@mafintosh
Copy link
Collaborator

Fixed in master a while ago, but added the test

@mafintosh mafintosh closed this Aug 19, 2022
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