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 / t004_task_cancel.vec

27 lines · 710 bytes Raw Blame History
1case task_cancel
2kind negative
3exec native-qemu
4domain 1
5needs tasks test-authority
6# interrupt can be handled, terminate cannot; cancelling an ended task changes nothing; a reaped id is STALE (ST6.3, ST6.5)
7cap C => OK
8bind B cap=C => OK
9spawn T hang bind=B => OK
10run => OK
11state T => OK state=RUNNING
12wait T => WOULD_BLOCK
13tcancel T interrupt => OK
14run => OK
15wait T => OK status=130 outcome=CANCELLED
16tcancel T interrupt => STALE
17spawn S stubborn bind=B => OK
18tcancel S interrupt => OK
19run => OK
20state S => OK state=RUNNING
21tcancel S terminate => OK
22wait S => OK status=137 outcome=CANCELLED
23spawn U exit 4 bind=B => OK
24run => OK
25tcancel U terminate => OK
26wait U => OK status=4 outcome=COMPLETED
27check empty