Commit 6944618
committed
Phase 5.B c22b-mech amend: JIT_TEST_COUNTER deliberate-leak negative test.
Closes supervisor 15:29:12Z scope addition (per shepard 15:28:27Z falsifier
flag + pythia python#379 python#3): without a deliberately-broken commit driving
JIT_TEST_COUNTER counter-mode to FAIL, the counter was "static-assert
dressed as runtime detection".
Adds t_negative_leak_detection in test_unlinked_instr.cpp (gated by
JIT_TEST_COUNTER): allocates 10 instructions with operands, deliberately
leaks the last one (skips delete), then asserts the counter delta is
2*(N-1) NOT 2*N — proving the gate detects the missed free.
Negative-test outcome:
- delta == 2*N -> gate missed the leak -> test FAIL
- delta == 2*(N-1) -> gate correctly detected leak via counter -> test PASS
- delta == anything else -> unexpected -> test FAIL
Build invocation: c++ -DJIT_TEST_COUNTER -I. -I../../../Include
test_unlinked_instr.cpp; runs 4 tests (3 prior + new negative); negative
test PASSES if and only if leak detection mechanism actually fires.
Miss self-attribution: chat-recheck-before-commit lapse on f47e4bf —
supervisor 15:29:12Z scope addition arrived after my 15:24:00Z WT-DIRTY
ack but before my 15:36:26Z WT-CLEAN claim. Per [chat_recheck_before_claim]
should have re-read chat before commit. Same failure-mode as theologian
5a8ea9c earlier in session.
Net: +49 LOC test_unlinked_instr.cpp.1 parent f47e4bf commit 6944618
1 file changed
Lines changed: 53 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
69 | 119 | | |
70 | 120 | | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
71 | 124 | | |
72 | 125 | | |
73 | 126 | | |
0 commit comments