]> git.proxmox.com Git - cargo.git/commit
Protect against spurious failure in ctrl_c test
authorAlex Crichton <alex@alexcrichton.com>
Sat, 31 Dec 2016 02:40:20 +0000 (18:40 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Sat, 31 Dec 2016 02:40:20 +0000 (18:40 -0800)
commitd7d5f0f2a9901059389d12221a6365303b4cbcbb
treec16c1e5c707320404ee84de47279119560b9e9bf
parent02eaab39039ac80cb978be867c2ce05efc508583
Protect against spurious failure in ctrl_c test

A failure was witnessed in the Rust repository [1] which happened right after
this test and was a problem removing a directory. Local testing confirms that if
you kill Cargo then right afterwards it's very unlikely to be able to remove the
build directory, presumably because the child process is still getting torn down
in the background.

This commit fixes the ctrl_c test itself to wait for itself to release the bulid
directory, at which point the test has definitely passed.

[1]: https://ci.appveyor.com/project/rust-lang/rust/build/1.0.1331/job/xq4ogmglj7sllibw
tests/death.rs