File tree Expand file tree Collapse file tree 1 file changed +11
-4
lines changed Expand file tree Collapse file tree 1 file changed +11
-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.
8
+ //@ ignore-i686-pc-windows-msvc
9
+ // Reason: the assert_eq! on line 37 fails, almost seems like it missing debug info?
10
+ // Haven't been able to reproduce locally, but it happens on CI.
10
11
11
12
use run_make_support:: rustc;
12
13
@@ -29,10 +30,16 @@ fn main() {
29
30
30
31
let rustc_query_count_full = count_lines_with ( rust_test_log_2, "rustc_query_" ) ;
31
32
32
- assert ! ( rust_test_log_1. lines( ) . count( ) < rust_test_log_2. lines( ) . count( ) ) ;
33
+ assert ! (
34
+ rust_test_log_1. lines( ) . count( ) < rust_test_log_2. lines( ) . count( ) ,
35
+ "Short backtrace should be shorter than full backtrace.\n Short backtrace:\n \
36
+ {rust_test_log_1}\n Full backtrace:\n {rust_test_log_2}"
37
+ ) ;
33
38
assert_eq ! (
34
39
count_lines_with( rust_test_log_2, "__rust_begin_short_backtrace" ) ,
35
- count_lines_with( rust_test_log_2, "__rust_end_short_backtrace" )
40
+ count_lines_with( rust_test_log_2, "__rust_end_short_backtrace" ) ,
41
+ "Full backtrace should contain the short backtrace markers.\n Full backtrace:\n \
42
+ {rust_test_log_2}"
36
43
) ;
37
44
assert ! ( count_lines_with( rust_test_log_1, "rustc_query_" ) + 5 < rustc_query_count_full) ;
38
45
assert ! ( rustc_query_count_full > 5 ) ;
You can’t perform that action at this time.
0 commit comments