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 / p019_dup_refs.vec
| 1 | case dup_refs |
| 2 | kind positive |
| 3 | # every dup is a reference: EOF only after the last write end closes |
| 4 | create R W A => OK |
| 5 | dup W W2 A w => OK |
| 6 | close W => OK |
| 7 | write W2 "x" => OK n=1 |
| 8 | read R 4 => OK n=1 data="x" |
| 9 | read R 4 => WOULD_BLOCK |
| 10 | close W2 => OK |
| 11 | read R 4 => OK n=0 |
| 12 | close R => OK |
| 13 | check empty |