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

22 lines · 564 bytes Raw Blame History
1case task_stream_binding
2kind positive
3exec native-qemu
4domain 2
5needs streams tasks test-authority
6# a task gets its own duplicate of its stream; the caller closing its copy is what lets end of stream arrive;
7# a reaped task id is released (ST6.1, ST6.2)
8cap C => OK
9bind B cap=C => OK
10create R W A => OK
11spawn T emit "hi" out=W bind=B => OK
12run => OK
13read R 8 => OK n=2 data="hi"
14read R 8 => WOULD_BLOCK
15close W => OK
16read R 8 => OK n=0
17state T => OK state=ENDED
18wait T => OK status=0 outcome=COMPLETED
19wait T => STALE
20state T => STALE
21close R => OK
22check empty