aien-protocols-mv
Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem
Brought by drakestapleton
aien-protocols-mv / specs / osh-platform / vectors / t016_eof_all_task_writers.vec
| 1 | case eof_all_task_writers |
| 2 | kind positive |
| 3 | exec native-qemu |
| 4 | domain 1 |
| 5 | needs streams tasks test-authority |
| 6 | # end of stream waits for writers held by tasks too; a task's ends close when it ends (ST4.4, ST6.1) |
| 7 | cap C => OK |
| 8 | bind B cap=C => OK |
| 9 | create R W A => OK |
| 10 | spawn T1 emit "a" out=W bind=B => OK |
| 11 | spawn T2 hang out=W bind=B => OK |
| 12 | close W => OK |
| 13 | run => OK |
| 14 | read R 8 => OK n=1 data="a" |
| 15 | read R 8 => WOULD_BLOCK |
| 16 | tcancel T2 interrupt => OK |
| 17 | run => OK |
| 18 | read R 8 => OK n=0 |
| 19 | wait T1 => OK status=0 outcome=COMPLETED |
| 20 | wait T2 => OK status=130 outcome=CANCELLED |
| 21 | close R => OK |
| 22 | check empty |