Skip to content

Avoid using the tests folder for the file manipulation test #985

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 2 commits into from
Oct 11, 2019

Conversation

pvdrz
Copy link
Contributor

@pvdrz pvdrz commented Oct 11, 2019

@RalfJung
Copy link
Member

That was quick, wow! But why would that work? Now it expects the file in the working directory instead of one level down, which still isn't where the file actually is.

@pvdrz
Copy link
Contributor Author

pvdrz commented Oct 11, 2019

That works because the test creates the file, then writes to it, then reads from it and then it deletes the file. The first version just assumed the file was there but now we don't need that anymore.

@RalfJung
Copy link
Member

Ah, that must be in the PR I didn't get to review yet. ;)

@pvdrz
Copy link
Contributor Author

pvdrz commented Oct 11, 2019

Heh, yeah that's exactly why. So, this would only pollute the build dir if the test fails, but hopefully travis will catch that issue even before someone decides to bump miri.

@RalfJung
Copy link
Member

Maybe give the file a better name then in case it doesn't get cleaned up, like miri_test_fs.txt?

@pvdrz
Copy link
Contributor Author

pvdrz commented Oct 11, 2019

sure

@RalfJung
Copy link
Member

Thanks a lot!

@bors r+

@bors
Copy link
Contributor

bors commented Oct 11, 2019

📌 Commit e9138ab has been approved by RalfJung

@bors
Copy link
Contributor

bors commented Oct 11, 2019

⌛ Testing commit e9138ab with merge e10d9d3...

bors added a commit that referenced this pull request Oct 11, 2019
Avoid using the tests folder for the file manipualtion test

rust-lang/rust#65278 r? @RalfJung
@RalfJung RalfJung changed the title Avoid using the tests folder for the file manipualtion test Avoid using the tests folder for the file manipulation test Oct 11, 2019
@bors
Copy link
Contributor

bors commented Oct 11, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: RalfJung
Pushing e10d9d3 to master...

@bors bors merged commit e9138ab into rust-lang:master Oct 11, 2019
jonhoo added a commit to jonhoo/rust that referenced this pull request Oct 11, 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.

3 participants