Skip to content

Commit 12f1313

Browse files
committed
Verified stopping and refreshing
1 parent c12ed6d commit 12f1313

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lldb/test/API/lang/swift/async/actors/unprioritised_jobs/TestSwiftActorUnprioritisedJobs.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,16 @@ def test_actor_unprioritised_jobs(self):
3737
process.Continue()
3838
# Wait - allow the other threads to work.
3939
time.sleep(2)
40-
# Stop/Interrupt/Halt
40+
# Stop the threads.
41+
# Notes: After a single interrupt, lldb reports the process as
42+
# running, but two interrupt calls results in a stopped process.
43+
# Also, using `process.Stop()` instead of `"process interrupt"`
44+
# did not work.
4145
self.dbg.SetAsync(False)
42-
process.Stop()
46+
self.dbg.HandleCommand("process interrupt")
47+
self.dbg.HandleCommand("process interrupt")
4348

4449
# Refresh data.
45-
process.SetSelectedThread(thread)
46-
frame = thread.GetSelectedFrame()
4750
unprioritised_jobs = frame.var("a.$defaultActor.unprioritised_jobs")
4851

4952
# There are 4 child tasks (async let), the first one occupies the actor,

0 commit comments

Comments
 (0)