File tree Expand file tree Collapse file tree 4 files changed +22
-1
lines changed
tests/integrations/basic-fail Expand file tree Collapse file tree 4 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -473,6 +473,7 @@ tests/actual_tests_bless/no_main.rs ... FAILED
473
473
tests/actual_tests_bless/no_main_manual.rs ... FAILED
474
474
tests/actual_tests_bless/no_test.rs ... FAILED
475
475
tests/actual_tests_bless/non_top_level_configs.rs ... FAILED
476
+ tests/actual_tests_bless/normalization_override.rs ... ok
476
477
tests/actual_tests_bless/pass.rs ... ok
477
478
tests/actual_tests_bless/pass_with_annotation.rs ... FAILED
478
479
tests/actual_tests_bless/revised_revision.rs ... FAILED
@@ -1078,7 +1079,7 @@ FAILURES:
1078
1079
tests/actual_tests_bless/unknown_revision2.rs
1079
1080
tests/actual_tests_bless/wrong_diagnostic_code.rs
1080
1081
1081
- test result: FAIL. 23 failed; 24 passed; 3 ignored
1082
+ test result: FAIL. 23 failed; 25 passed; 3 ignored
1082
1083
1083
1084
Building dependencies ... ok
1084
1085
tests/actual_tests_bless_yolo/revisions_bad.rs (revision `foo`) ... ok
Original file line number Diff line number Diff line change
1
+ //@normalize-stderr-test: "NORMALIZATION_OVERRIDE" -> "SUCCESS"
2
+
3
+ // Test that the above normalization will be run after the default normalization set in ui_tests_bless.rs
4
+
5
+ fn main ( ) {
6
+ asdf //~ ERROR: cannot find
7
+ }
Original file line number Diff line number Diff line change
1
+ error[E0425]: cannot find value `asdf` in this scope
2
+ --> tests/actual_tests_bless/NORMALIZATION_OVERRIDE.rs:6:5
3
+ |
4
+ 6 | asdf
5
+ | ^^^^ not found in this scope
6
+
7
+ error: aborting due to 1 previous error
8
+
9
+ For more information about this error, try `rustc --explain E0425`.
Original file line number Diff line number Diff line change @@ -46,6 +46,10 @@ fn main() -> ui_test::color_eyre::Result<()> {
46
46
config. stdout_filter ( "in ([0-9]m )?[0-9\\ .]+s" , "" ) ;
47
47
config. stderr_filter ( r"[^ ]*/\.?cargo/registry/.*/" , "$$CARGO_REGISTRY" ) ;
48
48
config. path_stderr_filter ( & std:: path:: Path :: new ( path) , "$DIR" ) ;
49
+
50
+ // This is part of a test: we want to make sure the base filters are run first
51
+ config. stderr_filter ( "normalization_override" , "NORMALIZATION_OVERRIDE" ) ;
52
+
49
53
let _ = run_tests_generic (
50
54
vec ! [ config] ,
51
55
default_file_filter,
You can’t perform that action at this time.
0 commit comments