File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
integrations/basic-fail/tests/actual_tests Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -56,8 +56,11 @@ fn main() -> Result<()> {
56
56
. stdout_filters
57
57
. insert ( 0 , ( Match :: Exact ( b"\\ \\ " . to_vec ( ) ) , b"\\ " ) ) ;
58
58
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 " , "" ) ;
61
64
config. filter ( " running on .*" , "" ) ;
62
65
config. stdout_filter ( "/target/[^/]+/[^/]+/debug" , "/target/$$TMP/$$TRIPLE/debug" ) ;
63
66
config. stdout_filter ( "/target/.tmp[^/ \" ]+" , "/target/$$TMP" ) ;
Original file line number Diff line number Diff line change 1
1
//@compile-flags: -Ztreat-err-as-bug
2
2
//@rustc-env: RUSTC_BOOTSTRAP=1
3
3
//@normalize-stderr-test: " +[0-9]+: .*\n" -> ""
4
- //@normalize-stderr-test: " +at /.*\n" -> ""
4
+ //@normalize-stderr-test: " +at \.? /.*\n" -> ""
5
5
//@normalize-stderr-test: " running on .*" -> ""
6
6
//@normalize-stderr-test: "note: rustc 1\..*" -> ""
7
7
use basic_fail:: add;
You can’t perform that action at this time.
0 commit comments