File tree Expand file tree Collapse file tree 2 files changed +3
-10
lines changed
lldb/test/API/lang/swift/async/actors/unprioritised_jobs Expand file tree Collapse file tree 2 files changed +3
-10
lines changed Original file line number Diff line number Diff line change 7
7
class TestCase (TestBase ):
8
8
9
9
@swiftTest
10
- @skipUnlessFoundation
11
- @skipIfWindows # temporarily skip test until fails can be investigated
12
- @skipIfLinux # temporarily skip test until fails can be investigated
13
- @skipIfDarwin # temporarily skip test until fails can be investigated
14
10
def test_actor_unprioritised_jobs (self ):
15
11
"""Verify that an actor exposes its unprioritised jobs (queue)."""
16
12
self .build ()
@@ -19,12 +15,11 @@ def test_actor_unprioritised_jobs(self):
19
15
)
20
16
frame = thread .GetSelectedFrame ()
21
17
defaultActor = frame .var ("a.$defaultActor" )
22
- self .assertEqual (defaultActor .summary , "running" )
23
18
unprioritised_jobs = defaultActor .GetChildMemberWithName ("unprioritised_jobs" )
24
19
# There are 4 child tasks (async let), the first one occupies the actor
25
20
# with a sleep, the next 3 go on to the queue.
26
- # TODO: rdar://148377173
27
- # self.assertEqual(unprioritised_jobs.num_children, 3 )
21
+ self . assertEqual ( unprioritised_jobs . num_children , 3 )
22
+ self .assertEqual (defaultActor . summary , "running" )
28
23
for job in unprioritised_jobs :
29
24
self .assertRegex (job .name , r"^\d+" )
30
25
self .assertRegex (job .summary , r"^id:\d+ flags:\S+" )
Original file line number Diff line number Diff line change 1
- import Foundation
2
-
3
1
actor Actor {
4
2
var data : Int = 15
5
3
6
4
func occupy( ) async {
7
- Thread . sleep ( forTimeInterval : 100 )
5
+ _ = readLine ( )
8
6
}
9
7
10
8
func work( ) async -> Int {
You can’t perform that action at this time.
0 commit comments