Skip to content

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

Closed
tedhorst wants to merge 1 commit into
rust-lang:masterfrom
tedhorst:time_test_hack
Closed

temporary hack to make testing std::time reliable#2259
tedhorst wants to merge 1 commit into
rust-lang:masterfrom
tedhorst:time_test_hack

Conversation

@tedhorst

Copy link
Copy Markdown
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
Copy Markdown
ContributorAuthor

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
Copy Markdown
ContributorAuthor

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
Copy Markdown
ContributorAuthor

squashed and rebased

@ghostghost assigned brsonApr 26, 2012
@catamorphism

Copy link
Copy Markdown
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
Copy Markdown
Contributor

Thanks! Merged.

@brsonbrson 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
U007D pushed a commit to U007D/rust-mos that referenced this pull request Aug 21, 2026
2259: Update smallvec and fix rustc warning r=matklad a=memoryruins
- Update smallvec in ra_mbe to [1.0](https://github.com/servo/rust-smallvec/releases/tag/v1.0.0)
- Heed rustc's `array_into_iter` lint rust-lang#66145
Co-authored-by: memoryruins <memoryruinsmusic@gmail.com>
Sign up for freeto 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

@tedhorst@catamorphism@brson