mirror of
https://github.com/kuhyx/testsAndMisc.git
synced 2026-11-10 22:07:03 +01:00
A 27-assertion suite for dwm_config.sh, the highest-scored remaining allowlisted lib. It drives the lib for real inside the jail: rewriting dwm.c with perl, appending to config.h, compiling with cc and installing into /usr/local/bin. The generated content is asserted, not just the call. LATENT BUG, found by writing the test: apply_fullscreen_confine_hook does `on=$(grep -c 'pconfine-auto on' "$src")`, and grep -c exits 1 when the count is zero. The caller runs `set -euo pipefail`, so the function aborted at that line exactly when the count was zero -- which is precisely when the "setfullscreen/unmanage were likely refactored upstream" warning three lines below was the thing needed. The warn branch was dead code in the only situation it exists for. Both call sites now use `|| true`, and the suite asserts the warning fires. Measured: dwm_config.sh 35/73 = 47.95%. It STAYS on the allowlist -- the bar is 100% and it is measured, not asserted. That number is an under-report. An `exit 43` sentinel proves build_install, build_pointer_confine, write_session_files and verify all execute inside the jail while kcov reports their bodies at zero hits. One kcov artifact is now CONFIRMED against a minimal repro: continuation lines inside a multi-line quoted argument (the `perl -0777 -pe '...'` blocks) are counted as statements that never run, which is the wrong denominator. A sixth hypothesis -- that the exec-ing sudo shim or a pipeline loses the trace -- was tested and disproven. The two-strike time-box on this hunt is spent; docs/shell-split-verification.md records what is known, including the exit-sentinel technique for telling a tracing failure from an aborted suite. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016sxxsDHWgdRhmdmzNMA6XM |
||
|---|---|---|
| .. | ||
| boot_recovery | ||
| diagnostics | ||
| gaming | ||
| lib | ||
| meta | ||
| mtk_root | ||
| periodic_background | ||
| single_use | ||