-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Closed
Labels
A-rebuild-detectionArea: rebuild detection and fingerprintingArea: rebuild detection and fingerprintingC-bugCategory: bugCategory: bug
Description
Problem
It appears that if you kill (with a SIGINT signal) a cargo test
midway, it can leave the target
directory in an unusable state. There are a bunch of empty files lying about which confuse subsequent cargo test` runs.
Subsequent cargo test
runs fail with errors like these:
$ cargo test
...
error: could not execute process `.../target/debug/deps/client-0e2e62dd0088de51` (never executed)
Caused by:
Permission denied (os error 13)
The error seems to be pointing to empty files in the directory. Manually deleting them makes the problem go away.
Possible Solution(s)
Maybe cargo test
could try to catch the SIGINT signal and tidy up the directory before exiting.
Notes
Output of cargo version
: 1.39.0
jyn514, kchibisov, matklad and pfrenssen
Metadata
Metadata
Assignees
Labels
A-rebuild-detectionArea: rebuild detection and fingerprintingArea: rebuild detection and fingerprintingC-bugCategory: bugCategory: bug