Skip to content

Commit 4a1e530

Browse files
authored
Merge pull request #171 from RalfJung/bless
fix 'cargo test'
2 parents 3d262a2 + 5e1d6b7 commit 4a1e530

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

tests/integration.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,11 @@ fn main() -> Result<()> {
5656
.stdout_filters
5757
.insert(0, (Match::Exact(b"\\\\".to_vec()), b"\\"));
5858
config.stdout_filter(r#"(panic.*)\.rs:[0-9]+:[0-9]+"#, "$1.rs");
59-
config.filter("(\\+)? +[0-9]+: .*\n", "");
60-
config.filter("(\\+)? +at /.*\n", "");
59+
// We don't want to normalize lines starting with `+`, those are diffs of the inner ui_test
60+
// and normalizing these here doesn't make the "actual output differed from expected" go
61+
// away, it just makes it impossible to diagnose.
62+
config.filter(" +[0-9]+: .*\n", "");
63+
config.filter(" +at \\.?/.*\n", "");
6164
config.filter(" running on .*", "");
6265
config.stdout_filter("/target/[^/]+/[^/]+/debug", "/target/$$TMP/$$TRIPLE/debug");
6366
config.stdout_filter("/target/.tmp[^/ \"]+", "/target/$$TMP");

tests/integrations/basic-fail/tests/actual_tests/rustc_ice.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//@compile-flags: -Ztreat-err-as-bug
22
//@rustc-env: RUSTC_BOOTSTRAP=1
33
//@normalize-stderr-test: " +[0-9]+: .*\n" -> ""
4-
//@normalize-stderr-test: " +at /.*\n" -> ""
4+
//@normalize-stderr-test: " +at \.?/.*\n" -> ""
55
//@normalize-stderr-test: " running on .*" -> ""
66
//@normalize-stderr-test: "note: rustc 1\..*" -> ""
77
use basic_fail::add;

0 commit comments

Comments
 (0)