HackerTrans
トップ新着トレンドコメント過去質問紹介求人

thebadkraft

no profile record

投稿

Show HN: SigmaTest: A no-holds, < 60KB C testrunner with memleak detection

github.com
2 ポイント·投稿者 thebadkraft·7 か月前·3 コメント

コメント

thebadkraft
·7 か月前·議論
He tried ... but, no ... it still sucks. Brassy claims? Yeah, prob'ly so ... but, the claims are supported. Has issues? Sure ... but for most use cases, easy enough to work through. Covers all types of memory pools? Nope, didn't make that claim ;)

Besides, mine is intended to be a non-invasive memory counter, that's all. Want more invasive memory scoping? Write a MemCheck hook and generate all the metrics you want. Want to make sure your memory pool doesn't leak, you have to find another way. Oh well.

Thanks for checking it out, though. I've got a lot on my plate so issues with SigmaTest are expected. The core library I'm working on is putting SigmaTest through it's paces ... it's doing it's job and letting me know if I miss freeing something here or there. It's just a tool and it's helpful.
thebadkraft
·7 か月前·議論
I just released Sigma-Test v1.0.0 – a pure C, no-macro test runner that’s smaller than most JSON test configs and ships with permanent, zero-config memory leak detection.

  - *<60 KB* static binary (58 KB on x86-64)
  - Zero dependencies, near-zero overhead
If mallocs ≠ frees, it screams *WARNING: MEMORY LEAK* in red, every single run.

  - Colored output  
  - Pluggable hooks that don't silence the console  
  - No Valgrind. No ASan. No flags. No excuses.

  ===== Memory Allocations Report =================================  
  WARNING: MEMORY LEAK — 1 unfreed allocation(s)  
    Total mallocs: 2  
    Total frees: 1  
  =================================================================  

Tired of forgetting to run leak checks? This one never forgets.

  Code: https://github.com/Quantum-Override/sigma-test/blob/v1.0.0-release/README.md
Feedback, roasts, and pull requests welcome. Let’s make C testing suck less in 2025.