File tree 3 files changed +6
-0
lines changed
3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -392,6 +392,7 @@ fn array_try_from_fn() {
392
392
assert_eq ! ( another_array, Err ( SomeError :: Foo ) ) ;
393
393
}
394
394
395
+ #[ cfg( not( panic = "abort" ) ) ]
395
396
#[ test]
396
397
fn array_try_from_fn_drops_inserted_elements_on_err ( ) {
397
398
static DROP_COUNTER : AtomicUsize = AtomicUsize :: new ( 0 ) ;
@@ -415,6 +416,7 @@ fn array_try_from_fn_drops_inserted_elements_on_err() {
415
416
assert_eq ! ( DROP_COUNTER . load( Ordering :: SeqCst ) , 2 ) ;
416
417
}
417
418
419
+ #[ cfg( not( panic = "abort" ) ) ]
418
420
#[ test]
419
421
fn array_try_from_fn_drops_inserted_elements_on_panic ( ) {
420
422
static DROP_COUNTER : AtomicUsize = AtomicUsize :: new ( 0 ) ;
@@ -438,6 +440,7 @@ fn array_try_from_fn_drops_inserted_elements_on_panic() {
438
440
assert_eq ! ( DROP_COUNTER . load( Ordering :: SeqCst ) , 2 ) ;
439
441
}
440
442
443
+ #[ cfg( not( panic = "abort" ) ) ]
441
444
// https://stackoverflow.com/a/59211505
442
445
fn catch_unwind_silent < F , R > ( f : F ) -> std:: thread:: Result < R >
443
446
where
Original file line number Diff line number Diff line change @@ -233,6 +233,7 @@ fn test_zip_trusted_random_access_composition() {
233
233
}
234
234
235
235
#[ test]
236
+ #[ cfg( panic = "unwind" ) ]
236
237
fn test_zip_trusted_random_access_next_back_drop ( ) {
237
238
use std:: panic:: catch_unwind;
238
239
use std:: panic:: AssertUnwindSafe ;
Original file line number Diff line number Diff line change 1
1
use core:: mem:: * ;
2
2
3
+ #[ cfg( panic = "unwind" ) ]
3
4
use std:: rc:: Rc ;
4
5
5
6
#[ test]
@@ -189,6 +190,7 @@ fn uninit_write_slice_cloned_panic_gt() {
189
190
}
190
191
191
192
#[ test]
193
+ #[ cfg( panic = "unwind" ) ]
192
194
fn uninit_write_slice_cloned_mid_panic ( ) {
193
195
use std:: panic;
194
196
You can’t perform that action at this time.
0 commit comments