interplane.Get Omega
Read in your language

aien-protocols-mv

Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem

Brought by drakestapleton

branch main Branches Tags History

aien-protocols-mv / specs / osh-platform / vectors / t005_cancel_blocked_task.vec

24 lines · 635 bytes Raw Blame History
1case cancel_blocked_task
2kind negative
3exec native-qemu
4domain 2
5needs streams tasks launch test-authority
6# a task parked in a stream read is interrupted out of it; pipeline cancel reaches every stage (ST4.7, ST6.5)
7cap C => OK
8bind B cap=C => OK
9create R W A => OK
10spawn T cat in=R bind=B => OK
11run => OK
12state T => OK state=RUNNING
13tcancel T interrupt => OK
14run => OK
15wait T => OK status=130 outcome=CANCELLED
16close R => OK
17close W => OK
18launch P bind=B : hang ! cat => OK
19run => OK
20waitp P => WOULD_BLOCK
21cancelp P interrupt => OK
22run => OK
23waitp P => OK status=130 outcomes=CANCELLED,CANCELLED statuses=130,130 out=""
24check empty