-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Labels
T-dev-toolsRelevant to the development tools team, which will review and decide on the RFC.Relevant to the development tools team, which will review and decide on the RFC.
Description
I have some setup code that I'd like to run that requires the process be single threaded when it runs. std::sync::Once
called at the top of each #[test]
isn't enough, as threads have already spawned by that point. My workaround is to use harness = false
but I either lose nice reporting or opt into #[feature(test)]
and require nightly.
I'm aware of #816, but I'm hoping that a limited improvement might be allowed to the stable interface of the existing test crate... :-)
felixc and jgosmann
Metadata
Metadata
Assignees
Labels
T-dev-toolsRelevant to the development tools team, which will review and decide on the RFC.Relevant to the development tools team, which will review and decide on the RFC.