aienux
Aienux, the AienOS kernel: boot, scheduling, IPC and capability boundaries. Pre-alpha; host, emulator and physical evidence are labelled separately.
Brought by drakestapleton
aienux / native / kernel / tests / fixtures / pipe / p002_capacity_partial.vec
| 1 | case capacity_partial |
| 2 | kind negative |
| 3 | # a finite buffer: a write past capacity is partial, a write on a full pipe is WOULD_BLOCK, never unbounded |
| 4 | create R W A => OK |
| 5 | fill W 65000 41 => OK n=65000 |
| 6 | fill W 1000 42 => OK n=536 |
| 7 | write W "x" => WOULD_BLOCK |
| 8 | check max_resident=65536 would_block=1 |
| 9 | read R 100 => OK n=100 |
| 10 | fill W 200 43 => OK n=100 |
| 11 | write W "x" => WOULD_BLOCK |
| 12 | check max_resident=65536 would_block=2 |
| 13 | close W => OK |
| 14 | close R => OK |
| 15 | check empty |