I have used the Unity Test framework for unit testing in several c projects. It's a simple framework with just the needed features, and some nice scripts for generating the trivial test runner code. I give it my best recommendations. Take it for a tour: Unity - Compact Test Framework for C