summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2015-05-11cmocka: Add subtests for groups using TAP outputEllie Timoney2-8/+23
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-03-12Bump version to 1.0.1Andreas Schneider1-2/+2
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-03-12Update ChangeLog.Andreas Schneider1-0/+7
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-03-02cmocka: realloc(ptr, 0) should act as free(ptr)Niels de Vos2-0/+18
Currently, realloc(ptr, 0) does not free the pointer as specified by 'man 3 realloc': The realloc() function changes the size of the memory block pointed to by ptr to size bytes. [...] if size is equal to zero, and ptr is not NULL, then the call is equivalent to free(ptr). [...] This causes a leak of the allocated memory, and tests that use this particular realloc() pattern fail. Signed-off-by: Niels de Vos <ndevos@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org> Reviewed-by: Jakub Hrozek <jakub.hrozek@posteo.se>
2015-02-25Fix function types in doxygen docsJakub Hrozek1-2/+2
Signed-off-by: Jakub Hrozek <jakub.hrozek@posteo.se> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-20cmake: Use https to drop results.Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-20include: Add macro for assert_ptr_equal().Andreas Schneider1-0/+38
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-20include: Fix building with newer gcc versions.Andreas Schneider1-5/+2
__func__ is not a macro. We just need to define it on Windows for now. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-16cpack: Exclude object directories.Andreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-16Bump version to 1.0.0.Andreas Schneider1-4/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-16Update ChangeLog.Andreas Schneider1-0/+12
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-13include: Use LargestIntegralType instead of uintmax_tAndreas Schneider1-26/+29
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-13include: Fix documentation for mock functionsAndreas Schneider1-7/+7
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-13cmake: Disable some tests on Windows.Andreas Schneider1-0/+3
They work when executed manually but not with ctest. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-12examples: Use WILL_FAIL instead of regular expressionAndreas Schneider1-7/+7
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-12cmake: Fix running examples on Windows.Andreas Schneider1-12/+8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-12tests: Use a different regex for segfault on WindowsJakub Hrozek1-6/+14
Signed-off-by: Jakub Hrozek <jakub.hrozek@posteo.se>
2015-02-12cmocka: examples: Fix assert macros usageKrzysztof Opasiak1-10/+3
Replace used macros with more suitable for given context. Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-12cmocka: Surround include info with code endcodeKrzysztof Opasiak1-1/+2
Doxygen makes list of includes hard to read when it is not explicitly marked as code. Surround it with code marks to improve readability. Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-12cmocka: Include cmocka_private.h after cmocka.hJakub Hrozek4-4/+4
cmocka_private.h uses WORDSIZE: # if __WORDSIZE == 64 # define __PRI64_PREFIX "l" But on some platforms, like Solaris, cmocka guesses its own WORDSIZE value in cmocka.h. Therefore it's important to include cmocka_private.h after cmocka.h
2015-02-12cmake: Always set correct output name.Andreas Schneider1-4/+8
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-12include: Correctly include signal.hAndreas Schneider2-1/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-12cmake: Fix executing test examples on Windows.Andreas Schneider3-12/+74
The executable need the path to dll set so they can be run successfully. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-12cmake: Build tests with the static library.Andreas Schneider2-2/+6
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-12include: Fix warning for missing __WORDSIZEAndreas Schneider2-0/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-11tests: Add io.h for open() and close() on Windows.Andreas Schneider3-0/+7
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-11cmake: Do not set gcc flags in VC.Andreas Schneider1-1/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-11tests: Fix test_assert_macros* with Visual Studio.Andreas Schneider2-0/+7
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-11tests: Fix building the tests with Visual Studio.Andreas Schneider3-0/+9
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-11config: Add missing define for (v)snprintf functions.Andreas Schneider2-0/+20
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-11cmake: Fix a typo in the optionsAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-11cmocka: Cast correctly to errno typeAndreas Schneider1-1/+1
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-11include: Add missing functions for Visual Studio.Andreas Schneider2-65/+98
Move the ugly stuff to cmocka_private.h. Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-11def: Export missing symbols on Windows.Andreas Schneider1-0/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-11cmocka: Fix possible test state issuesAndreas Schneider1-8/+5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-11include: Define __WORDSIZE if needed.Andreas Schneider1-0/+10
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-11include: Fix pointer casting and add check_expected_ptr()Andreas Schneider5-16/+44
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-10cmocka: Fix a double free in cmprintf_tap()Andreas Schneider1-1/+0
CID: #1268622 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-10cmocka: Initialize group_state in _cmocka_run_group_tests()Andreas Schneider1-1/+1
CID: #1268623 Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-10cmake: Turn off deprecated warning for test_cmockery.cAndreas Schneider1-2/+5
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-10include: Define fix defintion of LargestIntegralTypeAndreas Schneider1-32/+36
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-10cmocka: Fix printf integer formats.Andreas Schneider1-4/+36
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-10cmocka: Add printf attribute checking for vcm_print_error()Andreas Schneider1-0/+3
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-10cmocka: Check if 'struct timespec' is available.Andreas Schneider3-2/+20
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-10cmocka: Only handle SIGBUS and SIGSYS if the system supports it.Andreas Schneider1-0/+4
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-10cmocka: Fix length calculation.Andreas Schneider1-2/+3
CID: #1268624 Signed-off-by: Andreas Schneider <asn@cryptomilk.org> SQ
2015-02-10cmocka: Allow include of cmocka_platform.hAndreas Schneider3-0/+32
Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
2015-02-10tests: Add message output format testsJakub Hrozek1-0/+62
Signed-off-by: Jakub Hrozek <jakub.hrozek@posteo.se>
2015-02-10cmocka: Add a newline to subunit error outputJakub Hrozek1-1/+1
Signed-off-by: Jakub Hrozek <jakub.hrozek@posteo.se>
2015-02-10cmocka: Print test errors directly to make them included in the XML outputJakub Hrozek1-0/+2
Signed-off-by: Jakub Hrozek <jakub.hrozek@posteo.se>