interplane.Get Omega
Read in your language

aienux

Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.

Brought by drakestapleton

branch main Branches Tags History

aienux / native / kernel / tests / fixtures / pipe / p002_capacity_partial.vec

15 lines · 441 bytes Raw Blame History
1case capacity_partial
2kind negative
3# a finite buffer: a write past capacity is partial, a write on a full pipe is WOULD_BLOCK, never unbounded
4create R W A => OK
5fill W 65000 41 => OK n=65000
6fill W 1000 42 => OK n=536
7write W "x" => WOULD_BLOCK
8check max_resident=65536 would_block=1
9read R 100 => OK n=100
10fill W 200 43 => OK n=100
11write W "x" => WOULD_BLOCK
12check max_resident=65536 would_block=2
13close W => OK
14close R => OK
15check empty