Skip to content

Commit

Permalink
test: Add auto-redaction for not found error
Browse files Browse the repository at this point in the history
  • Loading branch information
eth3lbert committed Jun 21, 2024
1 parent e35cd55 commit d3573d0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions crates/cargo-test-support/src/compare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ static MIN_LITERAL_REDACTIONS: &[(&str, &str)] = &[
("[EXE]", std::env::consts::EXE_SUFFIX),
("[BROKEN_PIPE]", "Broken pipe (os error 32)"),
("[BROKEN_PIPE]", "The pipe is being closed. (os error 232)"),
// Unix message for an entity was not found
("[NOT_FOUND]", "No such file or directory (os error 2)"),
// Windows message for an entity was not found
("[NOT_FOUND]", "The system cannot find the file specified. (os error 2)"),
("[NOT_FOUND]", "The system cannot find the path specified. (os error 3)"),
("[NOT_FOUND]", "program not found"),
// Unix message for exit status
("[EXIT_STATUS]", "exit status"),
// Windows message for exit status
Expand Down

0 comments on commit d3573d0

Please sign in to comment.