|
- gcc -std=c99 -O1 -g -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -Isrc -Wall -Wextra -Werror -Wformat=2 -pedantic -pthread -fsanitize=address,undefined -fno-omit-frame-pointer -o test-sanitize-guard tests/test_guard.c src/core.c src/config.c
- ./test-sanitize-guard
- PASS strict configuration, safe defaults, explicit UUID authorization
- PASS mandatory protections, PID reuse and zone incarnation identity
- PASS timestamped 5/15/60s windows, missing data, signed growth, overflow
- PASS all six states, monotonic overruns, threshold jumps, corroboration and recovery
- PASS pageout_deadman_real_incident_2026_09 exits NORMAL before minfree
- PASS successful_pageout_deadman_avoidance_2026_09_21 incident fixture
- SIMULATED t=100 state=CRITICAL UUID=11111111-1111-4111-8111-111111111111 pid=123 WOULD_ACTION=SIGTERM
- SIMULATED t=105 state=CRITICAL pid=123 WOULD_ACTION=SIGKILL reason=memory_not_recovered
- SIMULATED state=EMERGENCY floor=1 WOULD_ACTION=SIGKILL reason=floor
- PASS TERM/KILL sequencing, emergency grace, floor, cooldown, budgets and no-action protections
- PASS hard-floor persistence, finite ceiling, missing corroboration, gap, brief/stable recovery
- PASS 240 checks; no native backend linked, no signals sent
- gcc -std=c99 -O1 -g -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -Isrc -Wall -Wextra -Werror -Wformat=2 -pedantic -pthread -fsanitize=address,undefined -fno-omit-frame-pointer -o test-sanitize-runtime tests/test_runtime.c src/core.c src/config.c src/result.c
- ./test-sanitize-runtime
- PASS actual daemon dry-run path records WOULD_ACTION=SIGTERM/SIGKILL; zero real requests
- PASS continuous sample contract and 5/15/60 deltas for commitment, physical swap and pageout
- PASS armed-path mock requests, explicit warmup, stale cache, logging/sampling failures, stop and fresh floor
- PASS global score uses process RSS/growth; protected zones and global zone excluded
- PASS SmartOS fixture produces a global cross-zone top-3 and bounded zone context
- PASS incomplete scan preserves cache; emergency uses O(1) fallback without a new walk
- PASS PID/start-time reuse rejects rank 1 and selects cached fallback
- PASS selective native syslog ident/facility/severity, exclusions, signal ordering, disable and failure isolation
- PASS panic32 fault: logger/syslog stopped 180s, stale cache revalidated, signal dispatch <100ms
- PASS stalled/incomplete scanner cannot delay or trigger a rescue-path proc scan
- PASS 16-entry stale rescue cache supplies all 8 EMERGENCY victims without scan
- PASS 16-entry stale rescue cache supplies all 12 FLOOR victims without scan
- PASS saturated/locked event queue drops telemetry without delaying the signal
- PASS floor486 fixture, 50ms timeout fallback rank1->2, syscall errno attribution and validation substep logs
- PASS recovery/failure/stale refresh reasons, desfree equality, no second victim, PCKILL subphases and slow-event threshold
- PASS panic33: partial recoveries, budgets, dead PID replacement, incomplete scan, hard ceiling16
- PASS incremental pre-return publication, survivor ordering, bounded merge and nonblocking handoff
- PASS 620 runtime checks; all platform calls mocked, no signals sent
- gcc -std=c99 -O1 -g -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -Isrc -Wall -Wextra -Werror -Wformat=2 -pedantic -pthread -Itests/api-sketch -fsanitize=address,undefined -fno-omit-frame-pointer -o test-sanitize-validation tests/test_validation.c
- ./test-sanitize-validation
- PASS 70 validation checks: real 1283ms worker abandoned, fallback, late disposal, pool saturation; actual dispatch code with mocked write; no signals
- gcc -std=c99 -O1 -g -D_POSIX_C_SOURCE=200809L -D_XOPEN_SOURCE=700 -Isrc -Wall -Wextra -Werror -Wformat=2 -pedantic -pthread -Itests/api-sketch -fsanitize=address,undefined -fno-omit-frame-pointer -o test-sanitize-prepare tests/test_prepare.c src/core.c src/config.c
- ./test-sanitize-prepare
- PASS 27 native preparation source checks with mocked proc/kstat/zone I/O; no native ABI claim or signals
|