@@ -73,6 +73,7 @@ fn frob() {
7373} 
7474
7575#[ test]  
76+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
7677fn  test_rw_arc_poison_wr ( )  { 
7778    let  arc = Arc :: new ( RwLock :: new ( 1 ) ) ; 
7879    let  arc2 = arc. clone ( ) ; 
@@ -85,6 +86,7 @@ fn test_rw_arc_poison_wr() {
8586} 
8687
8788#[ test]  
89+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
8890fn  test_rw_arc_poison_mapped_w_r ( )  { 
8991    let  arc = Arc :: new ( RwLock :: new ( 1 ) ) ; 
9092    let  arc2 = arc. clone ( ) ; 
@@ -98,6 +100,7 @@ fn test_rw_arc_poison_mapped_w_r() {
98100} 
99101
100102#[ test]  
103+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
101104fn  test_rw_arc_poison_ww ( )  { 
102105    let  arc = Arc :: new ( RwLock :: new ( 1 ) ) ; 
103106    assert ! ( !arc. is_poisoned( ) ) ; 
@@ -112,6 +115,7 @@ fn test_rw_arc_poison_ww() {
112115} 
113116
114117#[ test]  
118+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
115119fn  test_rw_arc_poison_mapped_w_w ( )  { 
116120    let  arc = Arc :: new ( RwLock :: new ( 1 ) ) ; 
117121    let  arc2 = arc. clone ( ) ; 
@@ -126,6 +130,7 @@ fn test_rw_arc_poison_mapped_w_w() {
126130} 
127131
128132#[ test]  
133+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
129134fn  test_rw_arc_no_poison_rr ( )  { 
130135    let  arc = Arc :: new ( RwLock :: new ( 1 ) ) ; 
131136    let  arc2 = arc. clone ( ) ; 
@@ -139,6 +144,7 @@ fn test_rw_arc_no_poison_rr() {
139144} 
140145
141146#[ test]  
147+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
142148fn  test_rw_arc_no_poison_mapped_r_r ( )  { 
143149    let  arc = Arc :: new ( RwLock :: new ( 1 ) ) ; 
144150    let  arc2 = arc. clone ( ) ; 
@@ -153,6 +159,7 @@ fn test_rw_arc_no_poison_mapped_r_r() {
153159} 
154160
155161#[ test]  
162+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
156163fn  test_rw_arc_no_poison_rw ( )  { 
157164    let  arc = Arc :: new ( RwLock :: new ( 1 ) ) ; 
158165    let  arc2 = arc. clone ( ) ; 
@@ -166,6 +173,7 @@ fn test_rw_arc_no_poison_rw() {
166173} 
167174
168175#[ test]  
176+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
169177fn  test_rw_arc_no_poison_mapped_r_w ( )  { 
170178    let  arc = Arc :: new ( RwLock :: new ( 1 ) ) ; 
171179    let  arc2 = arc. clone ( ) ; 
@@ -218,6 +226,7 @@ fn test_rw_arc() {
218226} 
219227
220228#[ test]  
229+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
221230fn  test_rw_arc_access_in_unwind ( )  { 
222231    let  arc = Arc :: new ( RwLock :: new ( 1 ) ) ; 
223232    let  arc2 = arc. clone ( ) ; 
@@ -316,6 +325,7 @@ fn test_into_inner_drop() {
316325} 
317326
318327#[ test]  
328+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
319329fn  test_into_inner_poison ( )  { 
320330    let  m = new_poisoned_rwlock ( NonCopy ( 10 ) ) ; 
321331
@@ -333,6 +343,7 @@ fn test_get_cloned() {
333343} 
334344
335345#[ test]  
346+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
336347fn  test_get_cloned_poison ( )  { 
337348    let  m = new_poisoned_rwlock ( Cloneable ( 10 ) ) ; 
338349
@@ -350,6 +361,7 @@ fn test_get_mut() {
350361} 
351362
352363#[ test]  
364+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
353365fn  test_get_mut_poison ( )  { 
354366    let  mut  m = new_poisoned_rwlock ( NonCopy ( 10 ) ) ; 
355367
@@ -377,6 +389,7 @@ fn test_set() {
377389} 
378390
379391#[ test]  
392+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
380393fn  test_set_poison ( )  { 
381394    fn  inner < T > ( mut  init :  impl  FnMut ( )  -> T ,  mut  value :  impl  FnMut ( )  -> T ) 
382395    where 
@@ -415,6 +428,7 @@ fn test_replace() {
415428} 
416429
417430#[ test]  
431+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
418432fn  test_replace_poison ( )  { 
419433    fn  inner < T > ( mut  init :  impl  FnMut ( )  -> T ,  mut  value :  impl  FnMut ( )  -> T ) 
420434    where 
@@ -482,6 +496,7 @@ fn test_mapping_mapped_guard() {
482496} 
483497
484498#[ test]  
499+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
485500fn  panic_while_mapping_read_unlocked_no_poison ( )  { 
486501    let  lock = RwLock :: new ( ( ) ) ; 
487502
@@ -551,6 +566,7 @@ fn panic_while_mapping_read_unlocked_no_poison() {
551566} 
552567
553568#[ test]  
569+ #[ cfg_attr( not( panic = "unwind" ) ,  ignore = "test requires unwinding support" ) ]  
554570fn  panic_while_mapping_write_unlocked_poison ( )  { 
555571    let  lock = RwLock :: new ( ( ) ) ; 
556572
0 commit comments