@@ -65,6 +65,8 @@ fn one_ignored_one_unignored_test() -> Vec<TestDescAndFn> {
65
65
compile_fail: false ,
66
66
no_run: false ,
67
67
test_type: TestType :: Unknown ,
68
+ #[ cfg( bootstrap) ]
69
+ allow_fail: false ,
68
70
} ,
69
71
testfn: DynTestFn ( Box :: new( move || { } ) ) ,
70
72
} ,
@@ -76,6 +78,8 @@ fn one_ignored_one_unignored_test() -> Vec<TestDescAndFn> {
76
78
compile_fail: false ,
77
79
no_run: false ,
78
80
test_type: TestType :: Unknown ,
81
+ #[ cfg( bootstrap) ]
82
+ allow_fail: false ,
79
83
} ,
80
84
testfn: DynTestFn ( Box :: new( move || { } ) ) ,
81
85
} ,
@@ -95,6 +99,8 @@ pub fn do_not_run_ignored_tests() {
95
99
compile_fail : false ,
96
100
no_run : false ,
97
101
test_type : TestType :: Unknown ,
102
+ #[ cfg( bootstrap) ]
103
+ allow_fail : false ,
98
104
} ,
99
105
testfn : DynTestFn ( Box :: new ( f) ) ,
100
106
} ;
@@ -115,6 +121,8 @@ pub fn ignored_tests_result_in_ignored() {
115
121
compile_fail : false ,
116
122
no_run : false ,
117
123
test_type : TestType :: Unknown ,
124
+ #[ cfg( bootstrap) ]
125
+ allow_fail : false ,
118
126
} ,
119
127
testfn : DynTestFn ( Box :: new ( f) ) ,
120
128
} ;
@@ -139,6 +147,8 @@ fn test_should_panic() {
139
147
compile_fail : false ,
140
148
no_run : false ,
141
149
test_type : TestType :: Unknown ,
150
+ #[ cfg( bootstrap) ]
151
+ allow_fail : false ,
142
152
} ,
143
153
testfn : DynTestFn ( Box :: new ( f) ) ,
144
154
} ;
@@ -163,6 +173,8 @@ fn test_should_panic_good_message() {
163
173
compile_fail : false ,
164
174
no_run : false ,
165
175
test_type : TestType :: Unknown ,
176
+ #[ cfg( bootstrap) ]
177
+ allow_fail : false ,
166
178
} ,
167
179
testfn : DynTestFn ( Box :: new ( f) ) ,
168
180
} ;
@@ -192,6 +204,8 @@ fn test_should_panic_bad_message() {
192
204
compile_fail : false ,
193
205
no_run : false ,
194
206
test_type : TestType :: Unknown ,
207
+ #[ cfg( bootstrap) ]
208
+ allow_fail : false ,
195
209
} ,
196
210
testfn : DynTestFn ( Box :: new ( f) ) ,
197
211
} ;
@@ -225,6 +239,8 @@ fn test_should_panic_non_string_message_type() {
225
239
compile_fail : false ,
226
240
no_run : false ,
227
241
test_type : TestType :: Unknown ,
242
+ #[ cfg( bootstrap) ]
243
+ allow_fail : false ,
228
244
} ,
229
245
testfn : DynTestFn ( Box :: new ( f) ) ,
230
246
} ;
@@ -250,6 +266,8 @@ fn test_should_panic_but_succeeds() {
250
266
compile_fail : false ,
251
267
no_run : false ,
252
268
test_type : TestType :: Unknown ,
269
+ #[ cfg( bootstrap) ]
270
+ allow_fail : false ,
253
271
} ,
254
272
testfn : DynTestFn ( Box :: new ( f) ) ,
255
273
} ;
@@ -283,6 +301,8 @@ fn report_time_test_template(report_time: bool) -> Option<TestExecTime> {
283
301
compile_fail : false ,
284
302
no_run : false ,
285
303
test_type : TestType :: Unknown ,
304
+ #[ cfg( bootstrap) ]
305
+ allow_fail : false ,
286
306
} ,
287
307
testfn : DynTestFn ( Box :: new ( f) ) ,
288
308
} ;
@@ -317,6 +337,8 @@ fn time_test_failure_template(test_type: TestType) -> TestResult {
317
337
compile_fail : false ,
318
338
no_run : false ,
319
339
test_type,
340
+ #[ cfg( bootstrap) ]
341
+ allow_fail : false ,
320
342
} ,
321
343
testfn : DynTestFn ( Box :: new ( f) ) ,
322
344
} ;
@@ -355,6 +377,8 @@ fn typed_test_desc(test_type: TestType) -> TestDesc {
355
377
compile_fail : false ,
356
378
no_run : false ,
357
379
test_type,
380
+ #[ cfg( bootstrap) ]
381
+ allow_fail : false ,
358
382
}
359
383
}
360
384
@@ -467,6 +491,8 @@ pub fn exclude_should_panic_option() {
467
491
compile_fail : false ,
468
492
no_run : false ,
469
493
test_type : TestType :: Unknown ,
494
+ #[ cfg( bootstrap) ]
495
+ allow_fail : false ,
470
496
} ,
471
497
testfn : DynTestFn ( Box :: new ( move || { } ) ) ,
472
498
} ) ;
@@ -490,6 +516,8 @@ pub fn exact_filter_match() {
490
516
compile_fail : false ,
491
517
no_run : false ,
492
518
test_type : TestType :: Unknown ,
519
+ #[ cfg( bootstrap) ]
520
+ allow_fail : false ,
493
521
} ,
494
522
testfn : DynTestFn ( Box :: new ( move || { } ) ) ,
495
523
} )
@@ -578,6 +606,8 @@ fn sample_tests() -> Vec<TestDescAndFn> {
578
606
compile_fail : false ,
579
607
no_run : false ,
580
608
test_type : TestType :: Unknown ,
609
+ #[ cfg( bootstrap) ]
610
+ allow_fail : false ,
581
611
} ,
582
612
testfn : DynTestFn ( Box :: new ( testfn) ) ,
583
613
} ;
@@ -728,6 +758,8 @@ pub fn test_bench_no_iter() {
728
758
compile_fail : false ,
729
759
no_run : false ,
730
760
test_type : TestType :: Unknown ,
761
+ #[ cfg( bootstrap) ]
762
+ allow_fail : false ,
731
763
} ;
732
764
733
765
crate :: bench:: benchmark ( TestId ( 0 ) , desc, tx, true , f) ;
@@ -749,6 +781,8 @@ pub fn test_bench_iter() {
749
781
compile_fail : false ,
750
782
no_run : false ,
751
783
test_type : TestType :: Unknown ,
784
+ #[ cfg( bootstrap) ]
785
+ allow_fail : false ,
752
786
} ;
753
787
754
788
crate :: bench:: benchmark ( TestId ( 0 ) , desc, tx, true , f) ;
@@ -764,6 +798,8 @@ fn should_sort_failures_before_printing_them() {
764
798
compile_fail : false ,
765
799
no_run : false ,
766
800
test_type : TestType :: Unknown ,
801
+ #[ cfg( bootstrap) ]
802
+ allow_fail : false ,
767
803
} ;
768
804
769
805
let test_b = TestDesc {
@@ -773,6 +809,8 @@ fn should_sort_failures_before_printing_them() {
773
809
compile_fail : false ,
774
810
no_run : false ,
775
811
test_type : TestType :: Unknown ,
812
+ #[ cfg( bootstrap) ]
813
+ allow_fail : false ,
776
814
} ;
777
815
778
816
let mut out = PrettyFormatter :: new ( OutputLocation :: Raw ( Vec :: new ( ) ) , false , 10 , false , None ) ;
0 commit comments