CMocka is an elegant unit testing framework for C with support for
mock objects. It only requires the standard C library, works on a lot
of platforms (including embedded) and with different compilers.
The goal of CMocka is to provide a powerful testing framework for C,
on different platforms and operating systems, which only requires the
standard C library.
CMocka minimizes conflicts with standard C headers especially on a lot
of different platforms.
Feature list includes: Support for mock objects, only requires a C
library, fully documented API, test fixtures, exception handling for
signals, no fork(), very well tested, testing of memory leaks, buffer
overflows and underflows.