cmocka
cmocka copied to clipboard
An elegant unit testing framework for C with support for mock objects.
While checking memory leaks, buffer overflows using test_free, test_malloc, etc getting segmentation fault in the following case. * Mocked Dynamic Memory handling functions like below ``` #ifdef UNITTEST extern void*...
Length of "__WORDSIZE" is not set in studio cc so the conditions are incorrectly evaluated when code is built on SPARC.
Is this the same project as https://gitlab.com/cmocka/cmocka/tree/master ? If so, perhaps you replace the contents of `README.md` with a note saying that the project has moved.
Is it possible to run unit tests on **Oracle Pro*C code**? If it is possible, - Should we run tests on the `.pc `file or the compiled `.c `file. -...
In our testing scripts, some CMOCKA group tests are called repeatedly (sometimes like 100+ times). This is making our Jenkins job fail with some tests having invalid JUNIT (xml) files...
cmake -DUNIT_TESTING=On ../cmocka-1.1.1 CMake Error at cmake/Modules/MacroEnsureOutOfSourceBuild.cmake:13 (message): cmocka requires an out of source build. Please create a separate build directory and run 'cmake /path/to/cmocka [options]' there. Call Stack (most...
For numerical applications we sometimes need to test if floating point numbers are correct. two few useful functions are ``` int assert_double_close(double a, double b, double rtol, double atol); int...
Compiling on Ubuntu 16.04 following these steps: $ git clone https://github.com/clibs/cmocka.git $ mkdir -p cmocka/build $ cd cmocka/build $ cmake ../ $ make The compilation is broken with a bunch...
I currently use 1.1.1 version [here](https://cmocka.org/files/1.1/) could you please update the package/add versioning support? Thanks
hi, when i tried to build the cmocka library i got the following error message make -DCMAKE_INSTALL_PREFIX=/home/mkarthig/repo/mkarthig/5601/sw/y/build/netconfdevel/ -DCMAKE_BUILD_TYPE=Debug -DUNIT_TESTING=ON .. -- Check if the system is big endian -- Searching...