platform/upstream/cmocka.git
10 years agotests: Add test_basics.
Andreas Schneider [Mon, 23 Dec 2013 15:12:23 +0000 (16:12 +0100)]
tests: Add test_basics.

10 years agotests: Use internal allocation for test_fixtures.
Andreas Schneider [Mon, 23 Dec 2013 18:06:07 +0000 (19:06 +0100)]
tests: Use internal allocation for test_fixtures.

10 years agotests: Add test_fixtures.
Andreas Schneider [Mon, 23 Dec 2013 15:07:46 +0000 (16:07 +0100)]
tests: Add test_fixtures.

10 years agotests: Add test_exception_handler_fail.
Andreas Schneider [Mon, 23 Dec 2013 15:06:04 +0000 (16:06 +0100)]
tests: Add test_exception_handler_fail.

10 years agotests: Add test_assert_macros_fail.
Andreas Schneider [Mon, 23 Dec 2013 15:03:50 +0000 (16:03 +0100)]
tests: Add test_assert_macros_fail.

10 years agotests: Add test_assert_macros.
Andreas Schneider [Mon, 23 Dec 2013 15:00:07 +0000 (16:00 +0100)]
tests: Add test_assert_macros.

10 years agocmocka: Add assert_return_code().
Andreas Schneider [Mon, 23 Dec 2013 14:38:00 +0000 (15:38 +0100)]
cmocka: Add assert_return_code().

10 years agoexample: Define UNIT_TESTING in run_tests.c.
Andreas Schneider [Sat, 21 Dec 2013 16:22:35 +0000 (17:22 +0100)]
example: Define UNIT_TESTING in run_tests.c.

This makes sure we ue the unit test allocators.

10 years agocmake: Fix calling the assert_module test.
Andreas Schneider [Sat, 21 Dec 2013 16:19:22 +0000 (17:19 +0100)]
cmake: Fix calling the assert_module test.

10 years agodoc: Improve the API mainpage.
Andreas Schneider [Thu, 19 Dec 2013 17:00:17 +0000 (18:00 +0100)]
doc: Improve the API mainpage.

10 years agoexample: Add the most simple test with cmocka.
Andreas Schneider [Fri, 13 Dec 2013 09:54:53 +0000 (10:54 +0100)]
example: Add the most simple test with cmocka.

10 years agoexample: Fix exception handler test on Solaris.
Andreas Schneider [Fri, 13 Dec 2013 09:51:04 +0000 (10:51 +0100)]
example: Fix exception handler test on Solaris.

10 years agoAdd obj directory for config.h to .clang_complete.
Andreas Schneider [Fri, 13 Dec 2013 09:55:11 +0000 (10:55 +0100)]
Add obj directory for config.h to .clang_complete.

10 years agoexample: Add an exampele to test exception handling.
Andreas Schneider [Wed, 11 Dec 2013 17:52:12 +0000 (18:52 +0100)]
example: Add an exampele to test exception handling.

10 years agocmocka: Print better message for exceptions.
Andreas Schneider [Wed, 11 Dec 2013 17:51:25 +0000 (18:51 +0100)]
cmocka: Print better message for exceptions.

10 years agoconfig: Add missing define for strsignal().
Andreas Schneider [Wed, 11 Dec 2013 17:51:04 +0000 (18:51 +0100)]
config: Add missing define for strsignal().

10 years agocmake: Fix compilation with -D_FORTIFY_SOURCE.
Andreas Schneider [Thu, 28 Nov 2013 13:10:03 +0000 (14:10 +0100)]
cmake: Fix compilation with -D_FORTIFY_SOURCE.

10 years agoAdd obj directory to .gitignore.
Andreas Schneider [Wed, 6 Nov 2013 08:25:38 +0000 (09:25 +0100)]
Add obj directory to .gitignore.

10 years agocmake: Exclude obj directory.
Andreas Schneider [Wed, 6 Nov 2013 07:13:01 +0000 (08:13 +0100)]
cmake: Exclude obj directory.

10 years agoUpdate ChangeLog.
Andreas Schneider [Wed, 6 Nov 2013 06:54:45 +0000 (07:54 +0100)]
Update ChangeLog.

10 years agoinclude: Don't stringify twice with will_return_always().
Travis Hendrickson [Sun, 27 Oct 2013 14:58:29 +0000 (15:58 +0100)]
include: Don't stringify twice with will_return_always().

10 years agoinclude: Fix unit_test_teardown macro.
Andreas Schneider [Sun, 27 Oct 2013 14:54:53 +0000 (15:54 +0100)]
include: Fix unit_test_teardown macro.

10 years agoFix GTest and GCC message style conformance
Aleksandr Vinokurov [Wed, 21 Aug 2013 14:38:39 +0000 (18:38 +0400)]
Fix GTest and GCC message style conformance

Move file:line ids to the beginning of the strings, adding 'note' levels as in GCC style

10 years agodoc: Update the main doc page.
Andreas Schneider [Sun, 11 Aug 2013 10:12:05 +0000 (12:12 +0200)]
doc: Update the main doc page.

10 years agocmake: Disable broken latex doc generation.
Andreas Schneider [Sun, 11 Aug 2013 10:11:50 +0000 (12:11 +0200)]
cmake: Disable broken latex doc generation.

10 years agoinclude: Correctly define unit_test_setup() and unit_test_teardown().
Andreas Schneider [Mon, 29 Jul 2013 17:35:34 +0000 (19:35 +0200)]
include: Correctly define unit_test_setup() and unit_test_teardown().

Thanks to James Grenning <james@grenning.net>.

10 years agocoverity: Add modeling file for assert functions.
Andreas Schneider [Mon, 29 Jul 2013 17:39:46 +0000 (19:39 +0200)]
coverity: Add modeling file for assert functions.

10 years agoREADME: Fix a typo and improve cmocka cmldine.
Andreas Schneider [Thu, 25 Jul 2013 21:03:02 +0000 (23:03 +0200)]
README: Fix a typo and improve cmocka cmldine.

Thanks to James Grenning <james@grenning.net>.

10 years agocmake: Fix description and display name.
Andreas Schneider [Wed, 24 Jul 2013 09:15:25 +0000 (11:15 +0200)]
cmake: Fix description and display name.

10 years agocmake: Fix a typo in FindNSIS.
Andreas Schneider [Wed, 24 Jul 2013 09:13:07 +0000 (11:13 +0200)]
cmake: Fix a typo in FindNSIS.

10 years agocmake: Update FindNSIS module.
Andreas Schneider [Wed, 24 Jul 2013 09:09:11 +0000 (11:09 +0200)]
cmake: Update FindNSIS module.

10 years agocmake: Fix homepage url.
Andreas Schneider [Wed, 24 Jul 2013 08:43:11 +0000 (10:43 +0200)]
cmake: Fix homepage url.

10 years agocmake: Bump version number and so version.
Andreas Schneider [Wed, 24 Jul 2013 08:21:56 +0000 (10:21 +0200)]
cmake: Bump version number and so version.

10 years agoexample: Add missing stdlib.h.
Andreas Schneider [Wed, 24 Jul 2013 08:08:44 +0000 (10:08 +0200)]
example: Add missing stdlib.h.

This fixes a build error on Windows.

10 years agoAdd .gitignore.
Andreas Schneider [Wed, 24 Jul 2013 08:03:31 +0000 (10:03 +0200)]
Add .gitignore.

10 years agoinclude: Don't redefine uintptr_t on Windows.
Andreas Schneider [Wed, 24 Jul 2013 08:00:19 +0000 (10:00 +0200)]
include: Don't redefine uintptr_t on Windows.

Visual Studio defines _UINTPTR_T_DEFINED if we have uintptr_t.

10 years agocmake: Set nightly start time to UTC.
Andreas Schneider [Wed, 24 Jul 2013 06:19:25 +0000 (08:19 +0200)]
cmake: Set nightly start time to UTC.

11 years agoAdd new macro will_return_always
Pavel Březina [Thu, 18 Jul 2013 11:19:08 +0000 (13:19 +0200)]
Add new macro will_return_always

Signed-off-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
11 years agoAdd new macro fail_msg
Pavel Březina [Wed, 17 Jul 2013 09:07:39 +0000 (11:07 +0200)]
Add new macro fail_msg

Signed-off-by: Pavel Březina <pbrezina@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
11 years agocov: Add coverity modeling file.
Andreas Schneider [Fri, 12 Jul 2013 10:23:18 +0000 (12:23 +0200)]
cov: Add coverity modeling file.

11 years agocmake: Pass _FORTIFY_SOURCE directly to the preprocessor.
Andreas Schneider [Wed, 10 Jul 2013 14:37:39 +0000 (16:37 +0200)]
cmake: Pass _FORTIFY_SOURCE directly to the preprocessor.

11 years agocmake: Bump version to 0.3.1.
Andreas Schneider [Wed, 10 Jul 2013 13:29:49 +0000 (15:29 +0200)]
cmake: Bump version to 0.3.1.

11 years agosrc: Fix a typo.
Andreas Schneider [Wed, 10 Jul 2013 13:21:25 +0000 (15:21 +0200)]
src: Fix a typo.

11 years agosrc: Fix ValuePointer conversion on 32bit big endian.
Andreas Schneider [Wed, 10 Jul 2013 13:19:26 +0000 (15:19 +0200)]
src: Fix ValuePointer conversion on 32bit big endian.

11 years agoexample: Fix customer database test on big endian.
Andreas Schneider [Wed, 10 Jul 2013 10:53:34 +0000 (12:53 +0200)]
example: Fix customer database test on big endian.

11 years agoexamples: Fix memory leaks in the waiter_test.
Andreas Schneider [Tue, 11 Jun 2013 07:50:43 +0000 (09:50 +0200)]
examples: Fix memory leaks in the waiter_test.

11 years agoexamples: Fix build warning in waiter_test.
Andreas Schneider [Tue, 11 Jun 2013 07:41:11 +0000 (09:41 +0200)]
examples: Fix build warning in waiter_test.

11 years agoUpdate AUTHORS file.
Andreas Schneider [Wed, 5 Jun 2013 10:07:24 +0000 (12:07 +0200)]
Update AUTHORS file.

11 years agoChange version number of the package.
Andreas Schneider [Wed, 5 Jun 2013 06:29:27 +0000 (08:29 +0200)]
Change version number of the package.

11 years agoFix date in the changelog.
Andreas Schneider [Wed, 5 Jun 2013 06:16:15 +0000 (08:16 +0200)]
Fix date in the changelog.

11 years agodoc: Add some more documentation for Mock Objects.
Andreas Schneider [Tue, 4 Jun 2013 16:16:38 +0000 (18:16 +0200)]
doc: Add some more documentation for Mock Objects.

11 years agodoc: Document expect_memory().
Andreas Schneider [Tue, 4 Jun 2013 14:39:42 +0000 (16:39 +0200)]
doc: Document expect_memory().

11 years agodoc: Document expect_any().
Andreas Schneider [Tue, 4 Jun 2013 14:32:33 +0000 (16:32 +0200)]
doc: Document expect_any().

11 years agodoc: Fix doc build.
Andreas Schneider [Tue, 4 Jun 2013 14:32:25 +0000 (16:32 +0200)]
doc: Fix doc build.

11 years agodoc: Document expect_value().
Andreas Schneider [Tue, 4 Jun 2013 14:01:20 +0000 (16:01 +0200)]
doc: Document expect_value().

11 years agodoc: document expect_range family of functions
Jakub Hrozek [Tue, 4 Jun 2013 12:51:48 +0000 (14:51 +0200)]
doc: document expect_range family of functions

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
11 years agodoc: Fix the doc of the count parameter in expect_*().
Andreas Schneider [Tue, 4 Jun 2013 12:04:44 +0000 (14:04 +0200)]
doc: Fix the doc of the count parameter in expect_*().

11 years agodoc: Fix typo in expect_not_in_set_count().
Andreas Schneider [Tue, 4 Jun 2013 11:49:07 +0000 (13:49 +0200)]
doc: Fix typo in expect_not_in_set_count().

11 years agoAdd cmocka-0.3.0 changes to ChangeLog.
Andreas Schneider [Tue, 4 Jun 2013 11:47:01 +0000 (13:47 +0200)]
Add cmocka-0.3.0 changes to ChangeLog.

11 years agodoc: Add comment to check_expected().
Andreas Schneider [Tue, 4 Jun 2013 10:47:42 +0000 (12:47 +0200)]
doc: Add comment to check_expected().

11 years agodoc: Add example for parameter checking.
Andreas Schneider [Tue, 4 Jun 2013 10:46:16 +0000 (12:46 +0200)]
doc: Add example for parameter checking.

11 years agodoc: Document expect_string*()
Andreas Schneider [Tue, 4 Jun 2013 10:39:22 +0000 (12:39 +0200)]
doc: Document expect_string*()

11 years agodoc: Document expect_in_set().
Andreas Schneider [Tue, 4 Jun 2013 10:25:39 +0000 (12:25 +0200)]
doc: Document expect_in_set().

11 years agodoc: Update doxygen config.
Andreas Schneider [Tue, 4 Jun 2013 10:23:49 +0000 (12:23 +0200)]
doc: Update doxygen config.

11 years agoAdd new macros mock_type and mock_ptr_type
Jakub Hrozek [Mon, 3 Jun 2013 16:42:33 +0000 (18:42 +0200)]
Add new macros mock_type and mock_ptr_type

Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
11 years agoexample: Fix building with optimization flags.
Andreas Schneider [Tue, 4 Jun 2013 08:13:51 +0000 (10:13 +0200)]
example: Fix building with optimization flags.

11 years agoexample: Fix a build warning.
Andreas Schneider [Mon, 3 Jun 2013 16:48:44 +0000 (18:48 +0200)]
example: Fix a build warning.

11 years agoexample: wrap trick
Jakub Hrozek [Mon, 3 Jun 2013 14:42:20 +0000 (16:42 +0200)]
example: wrap trick

Adds a new example that illustrates the gcc wrap trick.

11 years agoUpdate README.
Andreas Schneider [Tue, 9 Apr 2013 12:12:30 +0000 (14:12 +0200)]
Update README.

11 years agocmake: Fix check for fortify source.
Andreas Schneider [Tue, 9 Apr 2013 12:11:59 +0000 (14:11 +0200)]
cmake: Fix check for fortify source.

11 years agocmake: Try to fix problems with installation on other platforms.
Andreas Schneider [Tue, 19 Mar 2013 07:45:54 +0000 (08:45 +0100)]
cmake: Try to fix problems with installation on other platforms.

11 years agoUpdate the INSTALL file.
Andreas Schneider [Mon, 18 Mar 2013 21:34:19 +0000 (22:34 +0100)]
Update the INSTALL file.

11 years agocmake: Add pkgconfig file.
Andreas Schneider [Mon, 11 Feb 2013 15:25:59 +0000 (16:25 +0100)]
cmake: Add pkgconfig file.

11 years agodoc: Fix links in index.html
Jakub Hrozek [Fri, 1 Feb 2013 13:18:27 +0000 (14:18 +0100)]
doc: Fix links in index.html

The links were pointing to ../src/example should have been ../example

Reviwed-by: Andreas Schneider <asn@cryptomilk.org>
11 years agofile: Remove execute bits of C files.
Andreas Schneider [Thu, 17 Jan 2013 17:24:22 +0000 (18:24 +0100)]
file: Remove execute bits of C files.

11 years agodoc: Fix a typo.
Andreas Schneider [Tue, 15 Jan 2013 10:58:00 +0000 (11:58 +0100)]
doc: Fix a typo.

11 years agoUpdated ChangeLog.
Andreas Schneider [Mon, 14 Jan 2013 10:21:11 +0000 (11:21 +0100)]
Updated ChangeLog.

11 years agoAdd clang_complete config file.
Andreas Schneider [Tue, 4 Dec 2012 10:49:37 +0000 (11:49 +0100)]
Add clang_complete config file.

11 years agodoc: Document check_expected().
Andreas Schneider [Fri, 30 Nov 2012 16:17:16 +0000 (17:17 +0100)]
doc: Document check_expected().

11 years agodoc: Document expect_check().
Andreas Schneider [Fri, 30 Nov 2012 16:16:57 +0000 (17:16 +0100)]
doc: Document expect_check().

11 years agodoc: Add section for checking parameters.
Andreas Schneider [Fri, 30 Nov 2012 15:59:24 +0000 (16:59 +0100)]
doc: Add section for checking parameters.

11 years agodoc: Document expect_assert_failure().
Andreas Schneider [Fri, 16 Nov 2012 13:16:53 +0000 (14:16 +0100)]
doc: Document expect_assert_failure().

11 years agodoc: Document mock_assert().
Andreas Schneider [Fri, 16 Nov 2012 13:13:20 +0000 (14:13 +0100)]
doc: Document mock_assert().

11 years agodoc: Document Standard Assertions group.
Andreas Schneider [Fri, 16 Nov 2012 13:13:09 +0000 (14:13 +0100)]
doc: Document Standard Assertions group.

11 years agodoc: Document test_free().
Andreas Schneider [Fri, 16 Nov 2012 13:00:23 +0000 (14:00 +0100)]
doc: Document test_free().

11 years agodoc: Document test_calloc().
Andreas Schneider [Fri, 16 Nov 2012 12:58:18 +0000 (13:58 +0100)]
doc: Document test_calloc().

11 years agodoc: Document test_malloc().
Andreas Schneider [Fri, 16 Nov 2012 12:54:11 +0000 (13:54 +0100)]
doc: Document test_malloc().

11 years agodoc: Document Dynamic Memory Allocation group.
Andreas Schneider [Fri, 16 Nov 2012 12:46:29 +0000 (13:46 +0100)]
doc: Document Dynamic Memory Allocation group.

11 years agodoc: Document assert_not_in_set().
Andreas Schneider [Fri, 16 Nov 2012 12:38:06 +0000 (13:38 +0100)]
doc: Document assert_not_in_set().

11 years agodoc: Document assert_in_set().
Andreas Schneider [Fri, 16 Nov 2012 12:37:01 +0000 (13:37 +0100)]
doc: Document assert_in_set().

11 years agodoc: Document assert_not_in_range().
Andreas Schneider [Fri, 16 Nov 2012 09:48:42 +0000 (10:48 +0100)]
doc: Document assert_not_in_range().

11 years agodoc: Document assert_in_range().
Andreas Schneider [Sat, 10 Nov 2012 15:56:14 +0000 (16:56 +0100)]
doc: Document assert_in_range().

11 years agodoc: Document assert_in_range().
Andreas Schneider [Sat, 10 Nov 2012 15:56:14 +0000 (16:56 +0100)]
doc: Document assert_in_range().

11 years agodoc: Document assert_memory_not_equal().
Andreas Schneider [Sat, 10 Nov 2012 15:38:22 +0000 (16:38 +0100)]
doc: Document assert_memory_not_equal().

11 years agodoc: Document assert_memory_equal().
Andreas Schneider [Sat, 10 Nov 2012 15:32:00 +0000 (16:32 +0100)]
doc: Document assert_memory_equal().

11 years agodoc: Document assert_string_not_equal().
Andreas Schneider [Sat, 10 Nov 2012 15:27:10 +0000 (16:27 +0100)]
doc: Document assert_string_not_equal().

11 years agodoc: Document assert_string_equal().
Andreas Schneider [Mon, 5 Nov 2012 17:43:27 +0000 (18:43 +0100)]
doc: Document assert_string_equal().

11 years agodoc: Document assert_int_not_equal().
Andreas Schneider [Mon, 5 Nov 2012 17:42:41 +0000 (18:42 +0100)]
doc: Document assert_int_not_equal().

11 years agodoc: Document assert_int_equal().
Andreas Schneider [Mon, 5 Nov 2012 17:38:39 +0000 (18:38 +0100)]
doc: Document assert_int_equal().

11 years agodoc: Document assert_null().
Andreas Schneider [Mon, 5 Nov 2012 17:37:03 +0000 (18:37 +0100)]
doc: Document assert_null().