-
Notifications
You must be signed in to change notification settings - Fork 61
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
Default value of build_base leads to races when running tests concurrently #72
Comments
Ah, I think I found it. The default value for |
@RalfJung Thanks for reporting this. The |
@RalfJung Just to be sure, you meant |
Sorry, yes, I did. |
No worries, thanks 😄 I submitted rust-lang/rust#44126 to change the existing comments to doc comments. |
Sounds like a good start! How bad would it be for this crate to depend on tempdir? You could then provide a constructor that just does the right thing. |
Hmm, could it be added as an opt-in feature somehow? That would be awesome. |
Yeah, cargo features can totally do that. |
Using feature "tmp" the build_base will be a temporary directory provided by the tempdir crate. This provides a feature useful for running tests in parallel. Fixes #72
Using feature "tmp" the build_base will be a temporary directory provided by the tempdir crate. This provides a feature useful for running tests in parallel. Fixes #72
In miri, we use compiletest in multiple
#[test]
functions, so they are executed in parallel. We see a lot of test failures likeFrom the behavior of the bug (it only occurs spuriously), this feels a lot like a race condition.
(It also shows that compiletest messes with
/tmp
really badly, rather than creating its own subdirectory, which I would have expected.)We track this in miri as rust-lang/miri#305
The text was updated successfully, but these errors were encountered: