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

27 lines · 986 bytes Raw Blame History
1case malformed_frames
2kind negative
3# platform call frames: every malformed header is refused before any effect
4frame A - 4F534846 1 => INVALID_ARG
5frame A - 12345678 1 1 0 => INVALID_ARG
6frame A - 4F534846 2 1 0 => NOT_SUPPORTED
7frame A - 4F534846 0 1 0 => NOT_SUPPORTED
8frame A - 4F534846 1 1 1 => INVALID_ARG
9frame A - 4F534846 1 0 0 => NOT_SUPPORTED
10frame A - 4F534846 1 6 0 => NOT_SUPPORTED
11frame A - 4F534846 1 FFFFFFFF00000001 0 => NOT_SUPPORTED
12frame A - 4F534846 1 1 0 0 => INVALID_ARG
13frame A - 4F534846 1 4 0 0 => INVALID_ARG
14check empty
15create R W A => OK
16frame A - 4F534846 1 3 0 $W => INVALID_ARG
17frame A "abc" 4F534846 1 3 0 $W 2 => INVALID_ARG
18frame A "abc" 4F534846 1 3 0 $W 0 => OK n=3
19frame A - 4F534846 1 5 0 $R 1 2 => INVALID_ARG
20frame A - 4F534846 1 5 0 $R 1 1 => OK
21frame A - 4F534846 1 7 0 $R => NOT_SUPPORTED
22check bytes_written=3 bytes_read=0
23release B => OK n=1
24frame A - 4F534846 1 4 0 $R => OK
25frame A - 4F534846 1 4 0 $R => STALE
26close W => OK
27check empty