aien-protocols-mv
Canonical specifications, wire protocols, and schemas for the AIEN sovereign ecosystem
Brought by drakestapleton
aien-protocols-mv / specs / osh-platform / vectors / s004_broken_pipe.vec
| 1 | case broken_pipe |
| 2 | kind negative |
| 3 | exec host-logic |
| 4 | domain any |
| 5 | needs streams |
| 6 | # no reader: BROKEN_PIPE and nothing stored; a duplicate reader keeps the pipe readable (ST4.5, ST4.10) |
| 7 | create R W A => OK |
| 8 | dup R R2 A rd => OK |
| 9 | close R => OK |
| 10 | write W "abc" => OK n=3 |
| 11 | read R2 2 => OK n=2 data="ab" |
| 12 | close R2 => OK |
| 13 | write W "x" => BROKEN_PIPE |
| 14 | write W "" => BROKEN_PIPE |
| 15 | close W => OK |
| 16 | check empty |