@@ -82,7 +82,7 @@ class UsingTest {
82
82
onLinkage = IsSuppressed ,
83
83
onInterruption = IsSuppressed ,
84
84
onControl = IsSuppressed ,
85
- onException = IgnoresSuppressed )
85
+ onException = IsSuppressed )
86
86
}
87
87
88
88
@ Test
@@ -91,7 +91,7 @@ class UsingTest {
91
91
new ErrorResource ,
92
92
onLinkage = IsSuppressed ,
93
93
onInterruption = IsSuppressed ,
94
- onControl = IsSuppressed ,
94
+ onControl = AcceptsSuppressed ,
95
95
onException = IsSuppressed )
96
96
}
97
97
@@ -101,7 +101,7 @@ class UsingTest {
101
101
new ExceptionResource ,
102
102
onLinkage = IsSuppressed ,
103
103
onInterruption = IsSuppressed ,
104
- onControl = IsSuppressed ,
104
+ onControl = AcceptsSuppressed ,
105
105
onException = IsSuppressed )
106
106
}
107
107
@@ -135,7 +135,7 @@ class UsingTest {
135
135
check(new UsingVMError (_), behavior = IsSuppressed , allowsSuppression = true , yieldsTry = false )
136
136
check(new UsingLinkageError (_), onLinkage, allowsSuppression = true , yieldsTry = false )
137
137
check(_ => new UsingInterruption , onInterruption, allowsSuppression = true , yieldsTry = false )
138
- check(new UsingControl (_), onControl, allowsSuppression = false , yieldsTry = false )
138
+ check(new UsingControl (_), onControl, allowsSuppression = false , yieldsTry = onControl == IsSuppressed )
139
139
check(new UsingError (_), onException, allowsSuppression = true , yieldsTry = onException == IsSuppressed )
140
140
check(new UsingException (_), onException, allowsSuppression = true , yieldsTry = onException == IsSuppressed )
141
141
}
@@ -177,7 +177,7 @@ class UsingTest {
177
177
onLinkage = IsSuppressed ,
178
178
onInterruption = IsSuppressed ,
179
179
onControl = IsSuppressed ,
180
- onException = IgnoresSuppressed )
180
+ onException = IsSuppressed )
181
181
}
182
182
183
183
@ Test
@@ -186,7 +186,7 @@ class UsingTest {
186
186
new ErrorResource ,
187
187
onLinkage = IsSuppressed ,
188
188
onInterruption = IsSuppressed ,
189
- onControl = IsSuppressed ,
189
+ onControl = AcceptsSuppressed ,
190
190
onException = IsSuppressed )
191
191
}
192
192
@@ -196,7 +196,7 @@ class UsingTest {
196
196
new ExceptionResource ,
197
197
onLinkage = IsSuppressed ,
198
198
onInterruption = IsSuppressed ,
199
- onControl = IsSuppressed ,
199
+ onControl = AcceptsSuppressed ,
200
200
onException = IsSuppressed )
201
201
}
202
202
@@ -230,7 +230,7 @@ class UsingTest {
230
230
check(new UsingVMError (_), behavior = IsSuppressed , allowsSuppression = true , yieldsTry = false )
231
231
check(new UsingLinkageError (_), onLinkage, allowsSuppression = true , yieldsTry = false )
232
232
check(_ => new UsingInterruption , onInterruption, allowsSuppression = true , yieldsTry = false )
233
- check(new UsingControl (_), onControl, allowsSuppression = false , yieldsTry = false )
233
+ check(new UsingControl (_), onControl, allowsSuppression = false , yieldsTry = onControl == IsSuppressed )
234
234
check(new UsingError (_), onException, allowsSuppression = true , yieldsTry = onException == IsSuppressed )
235
235
check(new UsingException (_), onException, allowsSuppression = true , yieldsTry = onException == IsSuppressed )
236
236
}
@@ -272,7 +272,7 @@ class UsingTest {
272
272
onLinkage = IsSuppressed ,
273
273
onInterruption = IsSuppressed ,
274
274
onControl = IsSuppressed ,
275
- onException = IgnoresSuppressed )
275
+ onException = IsSuppressed )
276
276
}
277
277
278
278
@ Test
@@ -281,7 +281,7 @@ class UsingTest {
281
281
new ErrorResource ,
282
282
onLinkage = IsSuppressed ,
283
283
onInterruption = IsSuppressed ,
284
- onControl = IsSuppressed ,
284
+ onControl = AcceptsSuppressed ,
285
285
onException = IsSuppressed )
286
286
}
287
287
@@ -291,7 +291,7 @@ class UsingTest {
291
291
new ExceptionResource ,
292
292
onLinkage = IsSuppressed ,
293
293
onInterruption = IsSuppressed ,
294
- onControl = IsSuppressed ,
294
+ onControl = AcceptsSuppressed ,
295
295
onException = IsSuppressed )
296
296
}
297
297
0 commit comments