@@ -73,6 +73,7 @@ fn frob() {
73
73
}
74
74
75
75
#[ test]
76
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
76
77
fn test_rw_arc_poison_wr ( ) {
77
78
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
78
79
let arc2 = arc. clone ( ) ;
@@ -85,6 +86,7 @@ fn test_rw_arc_poison_wr() {
85
86
}
86
87
87
88
#[ test]
89
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
88
90
fn test_rw_arc_poison_mapped_w_r ( ) {
89
91
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
90
92
let arc2 = arc. clone ( ) ;
@@ -98,6 +100,7 @@ fn test_rw_arc_poison_mapped_w_r() {
98
100
}
99
101
100
102
#[ test]
103
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
101
104
fn test_rw_arc_poison_ww ( ) {
102
105
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
103
106
assert ! ( !arc. is_poisoned( ) ) ;
@@ -112,6 +115,7 @@ fn test_rw_arc_poison_ww() {
112
115
}
113
116
114
117
#[ test]
118
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
115
119
fn test_rw_arc_poison_mapped_w_w ( ) {
116
120
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
117
121
let arc2 = arc. clone ( ) ;
@@ -126,6 +130,7 @@ fn test_rw_arc_poison_mapped_w_w() {
126
130
}
127
131
128
132
#[ test]
133
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
129
134
fn test_rw_arc_no_poison_rr ( ) {
130
135
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
131
136
let arc2 = arc. clone ( ) ;
@@ -139,6 +144,7 @@ fn test_rw_arc_no_poison_rr() {
139
144
}
140
145
141
146
#[ test]
147
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
142
148
fn test_rw_arc_no_poison_mapped_r_r ( ) {
143
149
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
144
150
let arc2 = arc. clone ( ) ;
@@ -153,6 +159,7 @@ fn test_rw_arc_no_poison_mapped_r_r() {
153
159
}
154
160
155
161
#[ test]
162
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
156
163
fn test_rw_arc_no_poison_rw ( ) {
157
164
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
158
165
let arc2 = arc. clone ( ) ;
@@ -166,6 +173,7 @@ fn test_rw_arc_no_poison_rw() {
166
173
}
167
174
168
175
#[ test]
176
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
169
177
fn test_rw_arc_no_poison_mapped_r_w ( ) {
170
178
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
171
179
let arc2 = arc. clone ( ) ;
@@ -218,6 +226,7 @@ fn test_rw_arc() {
218
226
}
219
227
220
228
#[ test]
229
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
221
230
fn test_rw_arc_access_in_unwind ( ) {
222
231
let arc = Arc :: new ( RwLock :: new ( 1 ) ) ;
223
232
let arc2 = arc. clone ( ) ;
@@ -316,6 +325,7 @@ fn test_into_inner_drop() {
316
325
}
317
326
318
327
#[ test]
328
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
319
329
fn test_into_inner_poison ( ) {
320
330
let m = new_poisoned_rwlock ( NonCopy ( 10 ) ) ;
321
331
@@ -333,6 +343,7 @@ fn test_get_cloned() {
333
343
}
334
344
335
345
#[ test]
346
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
336
347
fn test_get_cloned_poison ( ) {
337
348
let m = new_poisoned_rwlock ( Cloneable ( 10 ) ) ;
338
349
@@ -350,6 +361,7 @@ fn test_get_mut() {
350
361
}
351
362
352
363
#[ test]
364
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
353
365
fn test_get_mut_poison ( ) {
354
366
let mut m = new_poisoned_rwlock ( NonCopy ( 10 ) ) ;
355
367
@@ -377,6 +389,7 @@ fn test_set() {
377
389
}
378
390
379
391
#[ test]
392
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
380
393
fn test_set_poison ( ) {
381
394
fn inner < T > ( mut init : impl FnMut ( ) -> T , mut value : impl FnMut ( ) -> T )
382
395
where
@@ -415,6 +428,7 @@ fn test_replace() {
415
428
}
416
429
417
430
#[ test]
431
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
418
432
fn test_replace_poison ( ) {
419
433
fn inner < T > ( mut init : impl FnMut ( ) -> T , mut value : impl FnMut ( ) -> T )
420
434
where
@@ -482,6 +496,7 @@ fn test_mapping_mapped_guard() {
482
496
}
483
497
484
498
#[ test]
499
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
485
500
fn panic_while_mapping_read_unlocked_no_poison ( ) {
486
501
let lock = RwLock :: new ( ( ) ) ;
487
502
@@ -551,6 +566,7 @@ fn panic_while_mapping_read_unlocked_no_poison() {
551
566
}
552
567
553
568
#[ test]
569
+ #[ cfg_attr( not( panic = "unwind" ) , ignore = "test requires unwinding support" ) ]
554
570
fn panic_while_mapping_write_unlocked_poison ( ) {
555
571
let lock = RwLock :: new ( ( ) ) ;
556
572
0 commit comments