aien-protocols-mv
Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem
Brought by drakestapleton
aien-protocols-mv / specs / osh-platform / vectors / t004_task_cancel.vec
| 1 | case task_cancel |
| 2 | kind negative |
| 3 | exec native-qemu |
| 4 | domain 1 |
| 5 | needs 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) |
| 7 | cap C => OK |
| 8 | bind B cap=C => OK |
| 9 | spawn T hang bind=B => OK |
| 10 | run => OK |
| 11 | state T => OK state=RUNNING |
| 12 | wait T => WOULD_BLOCK |
| 13 | tcancel T interrupt => OK |
| 14 | run => OK |
| 15 | wait T => OK status=130 outcome=CANCELLED |
| 16 | tcancel T interrupt => STALE |
| 17 | spawn S stubborn bind=B => OK |
| 18 | tcancel S interrupt => OK |
| 19 | run => OK |
| 20 | state S => OK state=RUNNING |
| 21 | tcancel S terminate => OK |
| 22 | wait S => OK status=137 outcome=CANCELLED |
| 23 | spawn U exit 4 bind=B => OK |
| 24 | run => OK |
| 25 | tcancel U terminate => OK |
| 26 | wait U => OK status=4 outcome=COMPLETED |
| 27 | check empty |