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

16 lines · 377 bytes Raw Blame History
1case broken_pipe
2kind negative
3exec host-logic
4domain any
5needs streams
6# no reader: BROKEN_PIPE and nothing stored; a duplicate reader keeps the pipe readable (ST4.5, ST4.10)
7create R W A => OK
8dup R R2 A rd => OK
9close R => OK
10write W "abc" => OK n=3
11read R2 2 => OK n=2 data="ab"
12close R2 => OK
13write W "x" => BROKEN_PIPE
14write W "" => BROKEN_PIPE
15close W => OK
16check empty