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

Test run-pass-fulldeps\issue-15149.rs usually fails on Windows #25542

Closed
petrochenkov opened this issue May 17, 2015 · 0 comments · Fixed by #25615
Closed

Test run-pass-fulldeps\issue-15149.rs usually fails on Windows #25542

petrochenkov opened this issue May 17, 2015 · 0 comments · Fixed by #25615
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc O-windows Operating system: Windows

Comments

@petrochenkov
Copy link
Contributor

https://github.com/rust-lang/rust/blob/master/src/test/run-pass-fulldeps/issue-15149.rs

Here's the problematic piece:

    let child_output = process::Command::new("mytest").env("PATH", &path)
                                                      .arg("child")
                                                      .output().unwrap();

    fs::remove_dir_all(&child_dir).unwrap(); // The panic happens here

On my machine remove_dir_all usually can't delete file mytest.exe with "access denied" error. If I insert something like std::thread::sleep_ms(1000); before remove_dir_all then the test consistently passes. Supposedly we are trying to delete it too soon when it's still locked after execution.

@alexcrichton alexcrichton added A-testsuite Area: The testsuite used to check the correctness of rustc O-windows Operating system: Windows labels May 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-testsuite Area: The testsuite used to check the correctness of rustc O-windows Operating system: Windows
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants