@@ -61,6 +61,10 @@ fn one_ignored_one_unignored_test() -> Vec<TestDescAndFn> {
61
61
ignore: true ,
62
62
should_panic: ShouldPanic :: No ,
63
63
allow_fail: false ,
64
+ #[ cfg( not( bootstrap) ) ]
65
+ compile_fail: false ,
66
+ #[ cfg( not( bootstrap) ) ]
67
+ no_run: false ,
64
68
test_type: TestType :: Unknown ,
65
69
} ,
66
70
testfn: DynTestFn ( Box :: new( move || { } ) ) ,
@@ -71,6 +75,10 @@ fn one_ignored_one_unignored_test() -> Vec<TestDescAndFn> {
71
75
ignore: false ,
72
76
should_panic: ShouldPanic :: No ,
73
77
allow_fail: false ,
78
+ #[ cfg( not( bootstrap) ) ]
79
+ compile_fail: false ,
80
+ #[ cfg( not( bootstrap) ) ]
81
+ no_run: false ,
74
82
test_type: TestType :: Unknown ,
75
83
} ,
76
84
testfn: DynTestFn ( Box :: new( move || { } ) ) ,
@@ -89,6 +97,10 @@ pub fn do_not_run_ignored_tests() {
89
97
ignore : true ,
90
98
should_panic : ShouldPanic :: No ,
91
99
allow_fail : false ,
100
+ #[ cfg( not( bootstrap) ) ]
101
+ compile_fail : false ,
102
+ #[ cfg( not( bootstrap) ) ]
103
+ no_run : false ,
92
104
test_type : TestType :: Unknown ,
93
105
} ,
94
106
testfn : DynTestFn ( Box :: new ( f) ) ,
@@ -108,6 +120,10 @@ pub fn ignored_tests_result_in_ignored() {
108
120
ignore : true ,
109
121
should_panic : ShouldPanic :: No ,
110
122
allow_fail : false ,
123
+ #[ cfg( not( bootstrap) ) ]
124
+ compile_fail : false ,
125
+ #[ cfg( not( bootstrap) ) ]
126
+ no_run : false ,
111
127
test_type : TestType :: Unknown ,
112
128
} ,
113
129
testfn : DynTestFn ( Box :: new ( f) ) ,
@@ -131,6 +147,10 @@ fn test_should_panic() {
131
147
ignore : false ,
132
148
should_panic : ShouldPanic :: Yes ,
133
149
allow_fail : false ,
150
+ #[ cfg( not( bootstrap) ) ]
151
+ compile_fail : false ,
152
+ #[ cfg( not( bootstrap) ) ]
153
+ no_run : false ,
134
154
test_type : TestType :: Unknown ,
135
155
} ,
136
156
testfn : DynTestFn ( Box :: new ( f) ) ,
@@ -154,6 +174,10 @@ fn test_should_panic_good_message() {
154
174
ignore : false ,
155
175
should_panic : ShouldPanic :: YesWithMessage ( "error message" ) ,
156
176
allow_fail : false ,
177
+ #[ cfg( not( bootstrap) ) ]
178
+ compile_fail : false ,
179
+ #[ cfg( not( bootstrap) ) ]
180
+ no_run : false ,
157
181
test_type : TestType :: Unknown ,
158
182
} ,
159
183
testfn : DynTestFn ( Box :: new ( f) ) ,
@@ -182,6 +206,10 @@ fn test_should_panic_bad_message() {
182
206
ignore : false ,
183
207
should_panic : ShouldPanic :: YesWithMessage ( expected) ,
184
208
allow_fail : false ,
209
+ #[ cfg( not( bootstrap) ) ]
210
+ compile_fail : false ,
211
+ #[ cfg( not( bootstrap) ) ]
212
+ no_run : false ,
185
213
test_type : TestType :: Unknown ,
186
214
} ,
187
215
testfn : DynTestFn ( Box :: new ( f) ) ,
@@ -214,6 +242,10 @@ fn test_should_panic_non_string_message_type() {
214
242
ignore : false ,
215
243
should_panic : ShouldPanic :: YesWithMessage ( expected) ,
216
244
allow_fail : false ,
245
+ #[ cfg( not( bootstrap) ) ]
246
+ compile_fail : false ,
247
+ #[ cfg( not( bootstrap) ) ]
248
+ no_run : false ,
217
249
test_type : TestType :: Unknown ,
218
250
} ,
219
251
testfn : DynTestFn ( Box :: new ( f) ) ,
@@ -238,6 +270,10 @@ fn test_should_panic_but_succeeds() {
238
270
ignore : false ,
239
271
should_panic,
240
272
allow_fail : false ,
273
+ #[ cfg( not( bootstrap) ) ]
274
+ compile_fail : false ,
275
+ #[ cfg( not( bootstrap) ) ]
276
+ no_run : false ,
241
277
test_type : TestType :: Unknown ,
242
278
} ,
243
279
testfn : DynTestFn ( Box :: new ( f) ) ,
@@ -270,6 +306,10 @@ fn report_time_test_template(report_time: bool) -> Option<TestExecTime> {
270
306
ignore : false ,
271
307
should_panic : ShouldPanic :: No ,
272
308
allow_fail : false ,
309
+ #[ cfg( not( bootstrap) ) ]
310
+ compile_fail : false ,
311
+ #[ cfg( not( bootstrap) ) ]
312
+ no_run : false ,
273
313
test_type : TestType :: Unknown ,
274
314
} ,
275
315
testfn : DynTestFn ( Box :: new ( f) ) ,
@@ -303,6 +343,10 @@ fn time_test_failure_template(test_type: TestType) -> TestResult {
303
343
ignore : false ,
304
344
should_panic : ShouldPanic :: No ,
305
345
allow_fail : false ,
346
+ #[ cfg( not( bootstrap) ) ]
347
+ compile_fail : false ,
348
+ #[ cfg( not( bootstrap) ) ]
349
+ no_run : false ,
306
350
test_type,
307
351
} ,
308
352
testfn : DynTestFn ( Box :: new ( f) ) ,
@@ -340,6 +384,10 @@ fn typed_test_desc(test_type: TestType) -> TestDesc {
340
384
ignore : false ,
341
385
should_panic : ShouldPanic :: No ,
342
386
allow_fail : false ,
387
+ #[ cfg( not( bootstrap) ) ]
388
+ compile_fail : false ,
389
+ #[ cfg( not( bootstrap) ) ]
390
+ no_run : false ,
343
391
test_type,
344
392
}
345
393
}
@@ -451,6 +499,10 @@ pub fn exclude_should_panic_option() {
451
499
ignore : false ,
452
500
should_panic : ShouldPanic :: Yes ,
453
501
allow_fail : false ,
502
+ #[ cfg( not( bootstrap) ) ]
503
+ compile_fail : false ,
504
+ #[ cfg( not( bootstrap) ) ]
505
+ no_run : false ,
454
506
test_type : TestType :: Unknown ,
455
507
} ,
456
508
testfn : DynTestFn ( Box :: new ( move || { } ) ) ,
@@ -473,6 +525,10 @@ pub fn exact_filter_match() {
473
525
ignore : false ,
474
526
should_panic : ShouldPanic :: No ,
475
527
allow_fail : false ,
528
+ #[ cfg( not( bootstrap) ) ]
529
+ compile_fail : false ,
530
+ #[ cfg( not( bootstrap) ) ]
531
+ no_run : false ,
476
532
test_type : TestType :: Unknown ,
477
533
} ,
478
534
testfn : DynTestFn ( Box :: new ( move || { } ) ) ,
@@ -565,6 +621,10 @@ pub fn sort_tests() {
565
621
ignore : false ,
566
622
should_panic : ShouldPanic :: No ,
567
623
allow_fail : false ,
624
+ #[ cfg( not( bootstrap) ) ]
625
+ compile_fail : false ,
626
+ #[ cfg( not( bootstrap) ) ]
627
+ no_run : false ,
568
628
test_type : TestType :: Unknown ,
569
629
} ,
570
630
testfn : DynTestFn ( Box :: new ( testfn) ) ,
@@ -642,6 +702,10 @@ pub fn test_bench_no_iter() {
642
702
ignore : false ,
643
703
should_panic : ShouldPanic :: No ,
644
704
allow_fail : false ,
705
+ #[ cfg( not( bootstrap) ) ]
706
+ compile_fail : false ,
707
+ #[ cfg( not( bootstrap) ) ]
708
+ no_run : false ,
645
709
test_type : TestType :: Unknown ,
646
710
} ;
647
711
@@ -662,6 +726,10 @@ pub fn test_bench_iter() {
662
726
ignore : false ,
663
727
should_panic : ShouldPanic :: No ,
664
728
allow_fail : false ,
729
+ #[ cfg( not( bootstrap) ) ]
730
+ compile_fail : false ,
731
+ #[ cfg( not( bootstrap) ) ]
732
+ no_run : false ,
665
733
test_type : TestType :: Unknown ,
666
734
} ;
667
735
@@ -676,6 +744,10 @@ fn should_sort_failures_before_printing_them() {
676
744
ignore : false ,
677
745
should_panic : ShouldPanic :: No ,
678
746
allow_fail : false ,
747
+ #[ cfg( not( bootstrap) ) ]
748
+ compile_fail : false ,
749
+ #[ cfg( not( bootstrap) ) ]
750
+ no_run : false ,
679
751
test_type : TestType :: Unknown ,
680
752
} ;
681
753
@@ -684,6 +756,10 @@ fn should_sort_failures_before_printing_them() {
684
756
ignore : false ,
685
757
should_panic : ShouldPanic :: No ,
686
758
allow_fail : false ,
759
+ #[ cfg( not( bootstrap) ) ]
760
+ compile_fail : false ,
761
+ #[ cfg( not( bootstrap) ) ]
762
+ no_run : false ,
687
763
test_type : TestType :: Unknown ,
688
764
} ;
689
765
0 commit comments