File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 5
5
// See https://github.com/rust-lang/rust/issues/107910
6
6
7
7
//@ needs-target-std
8
- //@ ignore-windows
9
- // Reason: the assert_eq! on line 32 fails, as error output on Windows is different.
10
8
11
9
use run_make_support:: rustc;
12
10
@@ -29,10 +27,16 @@ fn main() {
29
27
30
28
let rustc_query_count_full = count_lines_with ( rust_test_log_2, "rustc_query_" ) ;
31
29
32
- assert ! ( rust_test_log_1. lines( ) . count( ) < rust_test_log_2. lines( ) . count( ) ) ;
30
+ assert ! (
31
+ rust_test_log_1. lines( ) . count( ) < rust_test_log_2. lines( ) . count( ) ,
32
+ "Short backtrace should be shorter than full backtrace.\n Short backtrace:\n \
33
+ {rust_test_log_1}\n Full backtrace:\n {rust_test_log_2}"
34
+ ) ;
33
35
assert_eq ! (
34
36
count_lines_with( rust_test_log_2, "__rust_begin_short_backtrace" ) ,
35
- count_lines_with( rust_test_log_2, "__rust_end_short_backtrace" )
37
+ count_lines_with( rust_test_log_2, "__rust_end_short_backtrace" ) ,
38
+ "Full backtrace should contain the short backtrace markers.\n Full backtrace:\n \
39
+ {rust_test_log_2}"
36
40
) ;
37
41
assert ! ( count_lines_with( rust_test_log_1, "rustc_query_" ) + 5 < rustc_query_count_full) ;
38
42
assert ! ( rustc_query_count_full > 5 ) ;
You can’t perform that action at this time.
0 commit comments