code wiki / _hdl_build / nx_fix_fail.nx
nx_fix_fail.nx source
↩ module page · 11 lines · 415 B
1// nx_fix_fail.nx -- seat-drive gate FIXTURE: fail loudly, write NOTHING.
2// Exits 7 regardless of argv. Negative control for work/gate/checkin steps:
3// artifact-truth must see no marker, the driver must refuse to proceed.
4// license_tier: ORIGINAL No hw writes (Rule 26).
5import "nx_syscalls.nx"
6
7func main(argc: i64, argv: *i64) -> i64 {
8 sys_write(1, "FIX-FAIL\n" as *u8, 9)
9 sys_exit(7)
10 return 7
11}