Skip to content

Fix for intermittent Windows failures, see #22628 #22648

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

Closed

Conversation

Manishearth
Copy link
Member

The Windows failures in #22628 are caused by leftover threads blocking stdtest.exe; in both of these tests a thread is spawned that may outlive the main thread. We can't use a scoped thread here because these both test the behavior of panics in spawned threads, and with scoped threads we cannot panic the child without the parent panicking too.

A twenty-second sleep for Windows ensures that the spawned thread will have exited.

This is only temporary (and is very much a hack), we probably should find a better solution to the issue of exes being blocked because they are in use, perhaps via the test runner.

@rust-highfive
Copy link
Contributor

r? @alexcrichton

(rust_highfive has picked a reviewer for you, use r? to override)

@Manishearth Manishearth deleted the chewing-gum-and-duct-tape branch September 3, 2015 17:46
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