Skip to content
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

Remove broken disk_interface test for Stat #1423

Closed
wants to merge 1 commit into from

Conversation

atetubou
Copy link
Contributor

We don't want to pass non-canonicalized path to DiskInterface::Stat.

This makes test pass on appveyor.

@jhasse
Copy link
Collaborator

jhasse commented Oct 29, 2018

Thanks for the PR, we definitely need to fix that AppVeyor build. Can you elaborate what's the problem with non-canonicalized paths?

@ikifof
Copy link
Contributor

ikifof commented Oct 31, 2018

Ninja relies on the path being canonicalized: so it does not seem to make sense to test the behavior of utility functions in ninja core on non-canonicalized path, mainly if some platforms do not properly support some non-canonicalize paths (see #1420 ).
If we make the assumption that all paths that reach this point are canonicalized, should we assert if we get one that is not? (although that will probably make a lot of the tests to fail).

Edit: somehow a simple change that worked yesterday does not seem to actually work... so removing it from this comment. It seems it make sense to get rid of this test as far as this function is only used in the scope of ninja which only works on canonicalized path.

@jhasse
Copy link
Collaborator

jhasse commented Nov 2, 2018

If we make the assumption that all paths that reach this point are canonicalized, should we assert if we get one that is not?

Yes, sounds like a good idea to me.

(although that will probably make a lot of the tests to fail).

Shouldn't they already fail on Windows then?

@atetubou
Copy link
Contributor Author

atetubou commented Nov 2, 2018

Sorry, I cannot make a time to invest for this near future. So please feel free to take this if someone interested in this.

@jhasse
Copy link
Collaborator

jhasse commented Nov 5, 2018

No problem. Thanks for the PR and the explanation, I will take a closer look (deactivated the tests for now).

@jhasse jhasse closed this Nov 5, 2018
ikifof pushed a commit to ikifof/ninja that referenced this pull request Nov 5, 2018
@atetubou atetubou deleted the drop_test branch November 10, 2018 13:56
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