Go to file
Samuel Vasko 672c5cee79 Refactor symbol map freeing to avoid UB
Removes a undefined behaviour (uint underflow) happening when freeing a
value. Fortunately this undefined behaviour has no effect on the
program. It only manifests itself when cmocka is compiled using
clangs undefined behaviour sanitizer.

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2020-02-13 11:36:50 +01:00
cmake CI: Attemp to fix MSVC pipeline 2019-10-21 10:41:30 +02:00
coverity coverity: Fix assert model 2018-11-08 19:58:00 +01:00
doc XML output is JUnit XML, not xUnit XML. 2019-02-25 16:24:29 +01:00
example cmake: Make shared lib optional 2019-10-16 09:05:18 +02:00
include Don't redefine uintptr_t 2019-11-19 15:41:58 +01:00
src Refactor symbol map freeing to avoid UB 2020-02-13 11:36:50 +01:00
tests Add group_name in cmprintf_group_finish_standard. 2020-02-06 08:41:55 +01:00
.clang_complete Add obj directory for config.h to .clang_complete. 2013-12-13 10:55:40 +01:00
.gitignore cmake: Link compile database to source dir for clangd 2019-10-25 10:15:34 +02:00
.gitlab-ci.yml gitlab-ci: Remove Debian MIPS as they dropped support for it 2019-11-19 15:38:42 +01:00
.ycm_extra_conf.py Add YouCompleteMe config. 2014-04-11 15:09:12 +02:00
AUTHORS cmocka: Implement a new test runner. 2015-02-08 10:29:09 +01:00
CMakeLists.txt cmake: Export cmake config for cmocka 2019-11-19 15:55:15 +01:00
COPYING misc: Fix license in COPYING. 2011-05-31 21:17:09 +02:00
CPackConfig.cmake cmake: Set the project version 2018-09-10 08:40:51 +02:00
CTestConfig.cmake ctest: Move to new dashboard 2018-07-05 10:18:59 +02:00
ChangeLog Bump version to 1.1.5 2019-03-28 13:33:38 +01:00
CompilerChecks.cmake cmake: Add -Wmissing-field-initializers 2019-01-16 17:01:14 +01:00
ConfigureChecks.cmake Don't redefine uintptr_t 2019-11-19 15:41:58 +01:00
DefineOptions.cmake cmake: Add options for BUILD_SHARED_LIBS 2019-11-19 15:57:27 +01:00
INSTALL.md Fix in INSTALL.md cmake required version (i.e. >= 3.5.0) 2019-10-16 08:45:12 +02:00
NEWS Tue Aug 26 10:18:02 2008 Google Inc. <opensource@google.com> 2008-08-26 17:51:56 +00:00
README.md Add API website 2018-06-07 12:49:14 +02:00
cmocka-build-tree-settings.cmake.in cmake: Fix usage of cmocka with build tree 2019-10-22 09:09:06 +02:00
cmocka-config.cmake.in cmake: Fix usage of cmocka with build tree 2019-10-22 09:09:06 +02:00
cmocka.pc.cmake cmake: Do not use uninitialized variables 2018-09-11 09:28:44 +02:00
config.h.cmake Don't redefine uintptr_t 2019-11-19 15:41:58 +01:00
meson.build meson: Build and run unit tests 2019-08-22 11:41:49 +02:00
meson_options.txt meson: Build and run unit tests 2019-08-22 11:41:49 +02:00

README.md

cmocka

cmocka is an elegant unit testing framework for C with support for mock objects. It only requires the standard C library, works on a range of computing platforms (including embedded) and with different compilers.

For information about how to use the cmocka unit testing framework see doc/index.html or https://api.cmocka.org/.

Compiling

To compile the cmocka library and example applications run, create a build dir, and in the build dir call 'cmake /path/to/cmocka' followed by 'make'. On Windows you can use the cmake gui. More details can be found in the INSTALL file.

Website

https://cmocka.org