cmocka is a unit testing framework for C with mock objects. There are a variety of C unit testing frameworks available supporting different platforms and compilers. Some development requires a lot of different compilers and older versions, which makes it difficult to use unit testing frameworks. The idea of CMocka is that a test application only requires the standard C library and CMocka itself to minimize the conflicts with standard C library headers, especially on a lot of different platforms.
Thread Weaver is a framework for writing multithreaded unit tests for Java classes. It lets you create breakpoints inside your code and to stop individual threads when they reach a breakpoint. This allows you to produce controlled repeatable tests that can help to verify thread safety and detect race conditions.