File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed
tests/integrations/basic-fail Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ impl<'a> DiffState<'a> {
18
18
match self . skipped_lines {
19
19
0 => { }
20
20
1 => eprintln ! ( " {}" , self . last_skipped_line. unwrap( ) ) ,
21
- _ => eprintln ! ( "... {} lines skipped" , self . skipped_lines) ,
21
+ _ => eprintln ! ( "... {} lines skipped ... " , self . skipped_lines) ,
22
22
}
23
23
self . skipped_lines = 0 ;
24
24
}
@@ -101,10 +101,8 @@ impl<'a> DiffState<'a> {
101
101
}
102
102
}
103
103
104
- fn finish ( self ) {
105
- if self . skipped_lines != 0 {
106
- eprintln ! ( "... {} lines skipped ..." , self . skipped_lines) ;
107
- }
104
+ fn finish ( mut self ) {
105
+ self . print_skip ( ) ;
108
106
eprintln ! ( )
109
107
}
110
108
}
Original file line number Diff line number Diff line change @@ -40,12 +40,12 @@ tests/actual_tests/foomp.rs FAILED:
40
40
command: "rustc" "--error-format=json" "--edition=2021" "--extern" "basic_fail=$DIR/$DIR/../../../target/debug/libbasic_fail-$HASH.rmeta" "-L" "$DIR/$DIR/../../../target/debug" "-L" "$DIR/$DIR/../../../target/debug" "tests/actual_tests/foomp.rs"
41
41
42
42
actual output differed from expected tests/actual_tests/foomp.stderr
43
- ... 5 lines skipped
43
+ ... 5 lines skipped ...
44
44
+ | |
45
45
+ | arguments to this function are incorrect
46
- ... 2 lines skipped
46
+ ... 2 lines skipped ...
47
47
~ --> $DIR/$DIR/src/lib.rs:1:8
48
- ... 2 lines skipped
48
+ ... 2 lines skipped ...
49
49
~ | ^^^ some expected text that isn't in the actual message
50
50
51
51
-error: aborting doo to previous error
You can’t perform that action at this time.
0 commit comments