Skip to content

Commit

Permalink
Skip check_interrupted
Browse files Browse the repository at this point in the history
If we can't notice interrupts too many tests fail
  • Loading branch information
sourcefrog committed Sep 20, 2022
1 parent 9842c60 commit bd9c73d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub fn install_handler() {
}

/// Return an error if the program was interrupted and should exit.
#[mutants::skip] // With this mutated too many of the tests will hang.
pub fn check_interrupted() -> Result<()> {
if INTERRUPTED.load(Ordering::SeqCst) {
error!("interrupted");
Expand Down

0 comments on commit bd9c73d

Please sign in to comment.