Skip to content

Commit

Permalink
Merge pull request #171 from RalfJung/bless
Browse files Browse the repository at this point in the history
fix 'cargo test'
  • Loading branch information
oli-obk authored Sep 26, 2023
2 parents 3d262a2 + 5e1d6b7 commit 4a1e530
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
7 changes: 5 additions & 2 deletions tests/integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,11 @@ fn main() -> Result<()> {
.stdout_filters
.insert(0, (Match::Exact(b"\\\\".to_vec()), b"\\"));
config.stdout_filter(r#"(panic.*)\.rs:[0-9]+:[0-9]+"#, "$1.rs");
config.filter("(\\+)? +[0-9]+: .*\n", "");
config.filter("(\\+)? +at /.*\n", "");
// We don't want to normalize lines starting with `+`, those are diffs of the inner ui_test
// and normalizing these here doesn't make the "actual output differed from expected" go
// away, it just makes it impossible to diagnose.
config.filter(" +[0-9]+: .*\n", "");
config.filter(" +at \\.?/.*\n", "");
config.filter(" running on .*", "");
config.stdout_filter("/target/[^/]+/[^/]+/debug", "/target/$$TMP/$$TRIPLE/debug");
config.stdout_filter("/target/.tmp[^/ \"]+", "/target/$$TMP");
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//@compile-flags: -Ztreat-err-as-bug
//@rustc-env: RUSTC_BOOTSTRAP=1
//@normalize-stderr-test: " +[0-9]+: .*\n" -> ""
//@normalize-stderr-test: " +at /.*\n" -> ""
//@normalize-stderr-test: " +at \.?/.*\n" -> ""
//@normalize-stderr-test: " running on .*" -> ""
//@normalize-stderr-test: "note: rustc 1\..*" -> ""
use basic_fail::add;
Expand Down

0 comments on commit 4a1e530

Please sign in to comment.