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

22 lines · 564 bytes Raw Blame History
1case eof_all_task_writers
2kind positive
3exec native-qemu
4domain 1
5needs 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)
7cap C => OK
8bind B cap=C => OK
9create R W A => OK
10spawn T1 emit "a" out=W bind=B => OK
11spawn T2 hang out=W bind=B => OK
12close W => OK
13run => OK
14read R 8 => OK n=1 data="a"
15read R 8 => WOULD_BLOCK
16tcancel T2 interrupt => OK
17run => OK
18read R 8 => OK n=0
19wait T1 => OK status=0 outcome=COMPLETED
20wait T2 => OK status=130 outcome=CANCELLED
21close R => OK
22check empty