nx_sweep_daemon_gate.nx
buildroot/runtime/nx_sweep_daemon_gate.nx
about
nx_sweep_daemon_gate.nx -- gates the standing sweep on a fixture registry (runner: cd a scratch dir).
THE SOTA PROPERTY under test: a check that overruns its deadline is KILLED and scored TIMEOUT -- the
sweep never hangs. Also: PASS/FAIL verdicts are correct, the registry is data-driven (3 rows parsed),
consecutive-red counts, and the plain-English status renders the right chips. Uses /bin/true, /bin/false,
and /bin/sleep as the fixture victims (testing OUR killer -- the coreutils are the controlled subjects).
Exit 0 only on all-PASS. license_tier: ORIGINAL expect_exit: 0
dependencies 2 imports · 0 importers
imports: nx_sweep_daemon_lib.nxnx_seg_store.nx
imported by: nobody (leaf or entry point)
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| none |
consts
| 10 | const GG_CHECKS: i64 = 12 |
| 11 | const GG_STALE: i64 = 1 // subtract from stored mtime to force the "changed" reload path |
| 12 | const GG_PTR: i64 = 16 |
| 13 | const GG_HANG_MS: i64 = 5000 // "did not hang" bound |
| 14 | const GG_HTML_CAP: i64 = 262144 |
| 15 | const GG_FIX_N: i64 = 3 // fixture check count |
| 16 | const GG_YES_LEN: i64 = 3 // "YES" chip substring length |
| 17 | const GG_ASCII_Y: i64 = 89 // 'Y' |
| 18 | const GG_ASCII_E: i64 = 69 // 'E' |
| 19 | const GG_ASCII_S: i64 = 83 // 'S' |
functions
| 21 | func sd_app_stub(s: *u8) -> i64 { var n: i64 = 0; while s[n] != (0 as u8) { n = n + 1 } sys_write(1, s, n); return 0 } |
| 22 | func gg_check(name: *u8, ok: i64, pass: *i64) -> i64 |
| 27 | func gg_writefile(path: *u8, body: *u8) -> i64 { var n: i64 = 0; while body[n] != (0 as u8) { n = n + 1 } return ss_writefile(path, body, n) } |
| 29 | func gg_idx(ctx: *i64, name: *u8) -> i64 |
| 42 | func main() -> i64 |