programming/c-testing/SKILL.md
C testing workflow for unit and integration tests: harness structure, CTest integration, diagnosing failures, and using sanitizers and fuzzing for bug-finding signal. Use when writing or fixing tests for C (C11+) modules.
npx skillsauth add aeondave/malskill c-testingInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Pragmatic workflow for reliable C tests and bug-finding.
Load on demand:
references/harness.md — harness structure, assertions, Unity/cmocka optionsreferences/cmake-ctest.md — CMake/CTest patterns, labels, sanitizer presets, MinGW cross-compilereferences/sanitizers-fuzzing.md — ASan/UBSan usage and a minimal fuzz target outlinereferences/debugging.md — gdb/lldb, Valgrind, MinGW objdump/nm, MSVC dumpbin/WinDbg, ASan env varsdevelopment
Auth/lab ref: Unicorn Engine CPU-only emulation for shellcode, decryptors, custom VM handlers, instruction tracing, memory hooks, and register-level experiments.
development
Auth/lab ref: Renode board and SoC simulation for MCU/RTOS firmware, UART/GPIO/peripheral modeling, GDB remote debugging, REPL platforms, and RESC scripts.
development
Auth/lab ref: Qiling OS-layer binary emulation for PE/ELF/Mach-O/UEFI/shellcode with rootfs, syscall/API hooks, filesystem mapping, and runtime patching.
databases
Auth/lab ref: QEMU user-mode and full-system emulation for cross-arch binaries, firmware, kernels, disks, serial consoles, networking, and GDB stubs.