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

temporary hack to make testing std::time reliable #2259

Closed
wants to merge 1 commit into from

Conversation

tedhorst
Copy link
Contributor

This is a quick hack to address #2160 until we get some kind of global, static, singleton or whatever to fix the setenv threading problem.

@tedhorst
Copy link
Contributor Author

I was getting more than just failed tests, I was occasionally getting crashes as well. It seems like setenv on mac is not just unthreadsafe, it seems to be thread hostile.

@tedhorst
Copy link
Contributor Author

Ok, so the proper response to my last comment would be "what threads?". The single setenv is actually left over from a previous attempt to put the setenv call into a separate task, but I couldn't get it to run before the others (tried having all the other test start with task::yield()). Anyway, I can put that part back the way it was.

@tedhorst
Copy link
Contributor Author

squashed and rebased

@ghost ghost assigned brson Apr 26, 2012
@catamorphism
Copy link
Contributor

Assigning this to @brson to review as I don't know why this fix would work, and am afraid to merge it without understanding ;-)

@brson
Copy link
Contributor

brson commented Apr 26, 2012

Thanks! Merged.

@brson brson closed this Apr 26, 2012
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 22, 2022
BoxyUwU pushed a commit to BoxyUwU/rust that referenced this pull request Feb 25, 2025
document how to setup RA for nvim automatically
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