Skip to content

Commit 447e63c

Browse files
committed
Separate concurrency to avoid parrot breakage
1 parent 7060722 commit 447e63c

File tree

1 file changed

+36
-26
lines changed

1 file changed

+36
-26
lines changed

S02-types/WHICH.t

Lines changed: 36 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
use v6;
22
use Test;
33

4-
my @classes = <
4+
my @normal = <
55
AST
66
Any
77
Array
@@ -13,9 +13,7 @@ my @classes = <
1313
Block
1414
Bool
1515
CallFrame
16-
Cancellation
1716
Capture
18-
Channel
1917
Code
2018
CompUnit
2119
CompUnitRepo
@@ -25,7 +23,6 @@ my @classes = <
2523
Compiler
2624
Complex
2725
Cool
28-
CurrentThreadScheduler
2926
Cursor
3027
Date
3128
DateTime
@@ -52,7 +49,6 @@ my @classes = <
5249
IO::Path::QNX
5350
IO::Path::Unix
5451
IO::Path::Win32
55-
IO::Socket::Async
5652
IO::Socket::INET
5753
IO::Spec
5854
IO::Spec::Cygwin
@@ -98,16 +94,13 @@ my @classes = <
9894
Pod::Heading
9995
Pod::Item
10096
Pod::Raw
101-
Proc::Async
10297
Proc::Status
103-
Promise
10498
PseudoStash
10599
Range
106100
Rat
107101
Regex
108102
Routine
109103
Scalar
110-
Semaphore
111104
Seq
112105
Set
113106
SetHash
@@ -118,10 +111,6 @@ my @classes = <
118111
StrDistance
119112
Sub
120113
Submethod
121-
SupplyOperations
122-
Tap
123-
Thread
124-
ThreadPoolScheduler
125114
VM
126115
Variable
127116
Version
@@ -145,8 +134,6 @@ my @classes = <
145134
X::Buf::Pack
146135
X::Buf::Pack::NonASCII
147136
X::Caller::NotDynamic
148-
X::Channel::ReceiveOnClosed
149-
X::Channel::SendOnClosed
150137
X::Comp::AdHoc
151138
X::Comp::Group
152139
X::Comp::NYI
@@ -190,7 +177,6 @@ my @classes = <
190177
X::Inheritance::Unsupported
191178
X::Item
192179
X::Localizer::NoContainer
193-
X::Lock::ConditionVariable::New
194180
X::Match::Bool
195181
X::Method::InvalidQualifier
196182
X::Method::NotFound
@@ -217,12 +203,6 @@ my @classes = <
217203
X::Phaser::PrePost
218204
X::Placeholder::Block
219205
X::Placeholder::Mainline
220-
X::Proc::Async::AlreadyStarted
221-
X::Proc::Async::CharsOrBytes
222-
X::Proc::Async::TapBeforeSpawn
223-
X::Promise::CauseOnlyValidOnBroken
224-
X::Promise::Combinator
225-
X::Promise::Vowed
226206
X::PseudoPackage::InDeclaration
227207
X::Range::InvalidArg
228208
X::Redeclaration
@@ -238,9 +218,6 @@ my @classes = <
238218
X::Str::Trans::IllegalKey
239219
X::Str::Trans::InvalidArg
240220
X::Subscript::FromEnd
241-
X::Supply::Migrate::Needs
242-
X::Supply::On::BadSetup
243-
X::Supply::On::NoMore
244221
X::Syntax::Argument::MOPMacro
245222
X::Syntax::Augment::Illegal
246223
X::Syntax::Augment::WithoutMonkeyTyping
@@ -297,9 +274,42 @@ my @classes = <
297274
utf8
298275
>;
299276

300-
plan 2 * @classes;
277+
my @concurrent = <
278+
Cancellation
279+
Channel
280+
CurrentThreadScheduler
281+
IO::Notification
282+
IO::Socket::Async
283+
Proc::Async
284+
Promise
285+
Semaphore
286+
SupplyOperations
287+
Tap
288+
Thread
289+
ThreadPoolScheduler
290+
X::Channel::ReceiveOnClosed
291+
X::Channel::SendOnClosed
292+
X::Lock::ConditionVariable::New
293+
X::Proc::Async::AlreadyStarted
294+
X::Proc::Async::CharsOrBytes
295+
X::Proc::Async::TapBeforeSpawn
296+
X::Promise::CauseOnlyValidOnBroken
297+
X::Promise::Combinator
298+
X::Promise::Vowed
299+
X::Supply::Migrate::Needs
300+
X::Supply::On::BadSetup
301+
X::Supply::On::NoMore
302+
>;
303+
304+
plan 2 * ( @normal + @concurrent );
305+
306+
for @normal -> $class {
307+
is ::($class).WHICH, $class, "checking $class.WHICH";
308+
is ::($class).WHICH.WHAT.perl, 'ObjAt', "$class returns an ObjAt";
309+
}
301310

302-
for @classes -> $class {
311+
for @concurrent -> $class {
312+
#?rakudo.parrot skip 2 'NYI on parrot'
303313
is ::($class).WHICH, $class, "checking $class.WHICH";
304314
is ::($class).WHICH.WHAT.perl, 'ObjAt', "$class returns an ObjAt";
305315
}

0 commit comments

Comments
 (0)