obnox/cmocka.git
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.

10 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>
10 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>
10 years agocov: Add coverity modeling file.
Andreas Schneider [Fri, 12 Jul 2013 10:23:18 +0000 (12:23 +0200)]
cov: Add coverity modeling file.

10 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.

10 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.

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

10 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.

10 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.

10 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.

10 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().

11 years agodoc: Add a more detailed description to the Assert Macros section.
Andreas Schneider [Mon, 5 Nov 2012 17:32:03 +0000 (18:32 +0100)]
doc: Add a more detailed description to the Assert Macros section.

11 years agodoc: Add example to Running Tests section.
Andreas Schneider [Mon, 5 Nov 2012 17:28:26 +0000 (18:28 +0100)]
doc: Add example to Running Tests section.

11 years agoexample: Use C style comments.
Andreas Schneider [Fri, 19 Oct 2012 23:01:53 +0000 (01:01 +0200)]
example: Use C style comments.

11 years agocmocka: Make teardown_testing() static.
Andreas Schneider [Fri, 19 Oct 2012 22:50:26 +0000 (00:50 +0200)]
cmocka: Make teardown_testing() static.

11 years agocmocka: Use C style comments.
Andreas Schneider [Fri, 19 Oct 2012 22:48:07 +0000 (00:48 +0200)]
cmocka: Use C style comments.

11 years agocmocka: Add a missing space in tests output.
Andreas Schneider [Fri, 19 Oct 2012 16:12:35 +0000 (18:12 +0200)]
cmocka: Add a missing space in tests output.

11 years agoinclude: Document assert_non_null().
Andreas Schneider [Wed, 17 Oct 2012 15:27:37 +0000 (17:27 +0200)]
include: Document assert_non_null().

11 years agoinclude: Document assert_false().
Andreas Schneider [Wed, 17 Oct 2012 15:20:38 +0000 (17:20 +0200)]
include: Document assert_false().

11 years agoinclude: Document assert_true().
Andreas Schneider [Wed, 17 Oct 2012 15:16:23 +0000 (17:16 +0200)]
include: Document assert_true().

11 years agocmocka: Add a missing space in tests output.
Andreas Schneider [Tue, 16 Oct 2012 14:38:49 +0000 (16:38 +0200)]
cmocka: Add a missing space in tests output.

11 years agodoc: Fix testcase.
Andreas Schneider [Tue, 16 Oct 2012 10:04:00 +0000 (12:04 +0200)]
doc: Fix testcase.

11 years agoinclude: Document run_tests().
Andreas Schneider [Tue, 16 Oct 2012 10:01:08 +0000 (12:01 +0200)]
include: Document run_tests().

11 years agotests: Extend the run_tests example.
Andreas Schneider [Tue, 16 Oct 2012 10:01:20 +0000 (12:01 +0200)]
tests: Extend the run_tests example.

11 years agoinclude: Document run_tests().
Andreas Schneider [Tue, 16 Oct 2012 10:01:08 +0000 (12:01 +0200)]
include: Document run_tests().

11 years agoinclude: Document unit_test*() macros.
Andreas Schneider [Tue, 16 Oct 2012 09:23:54 +0000 (11:23 +0200)]
include: Document unit_test*() macros.

11 years agoinclude: Document run_tests().
Andreas Schneider [Tue, 16 Oct 2012 09:23:39 +0000 (11:23 +0200)]
include: Document run_tests().

11 years agoinclude: Document fail().
Andreas Schneider [Tue, 16 Oct 2012 09:15:29 +0000 (11:15 +0200)]
include: Document fail().

11 years agocmake: Add missing inclue dir.
Andreas Schneider [Mon, 15 Oct 2012 19:47:19 +0000 (21:47 +0200)]
cmake: Add missing inclue dir.

11 years agoinclude: Add a group for mock objects.
Andreas Schneider [Mon, 15 Oct 2012 18:43:08 +0000 (20:43 +0200)]
include: Add a group for mock objects.

11 years agoinclude: Document will_return_count().
Andreas Schneider [Mon, 15 Oct 2012 18:06:16 +0000 (20:06 +0200)]
include: Document will_return_count().

11 years agoinclude: Document will_return().
Andreas Schneider [Mon, 15 Oct 2012 18:06:03 +0000 (20:06 +0200)]
include: Document will_return().

11 years agoinclude: Document mock().
Andreas Schneider [Mon, 15 Oct 2012 18:03:25 +0000 (20:03 +0200)]
include: Document mock().

11 years agodoc: Add example for cmocka test case.
Andreas Schneider [Mon, 15 Oct 2012 18:37:36 +0000 (20:37 +0200)]
doc: Add example for cmocka test case.

11 years agodoc: Add more details to the main page.
Andreas Schneider [Mon, 15 Oct 2012 18:31:13 +0000 (20:31 +0200)]
doc: Add more details to the main page.

11 years agocmake: Add API documentation support using doxygen.
Andreas Schneider [Mon, 15 Oct 2012 18:18:44 +0000 (20:18 +0200)]
cmake: Add API documentation support using doxygen.

11 years agocmake: Remove superflous function and header checks.
Andreas Schneider [Mon, 15 Oct 2012 17:45:48 +0000 (19:45 +0200)]
cmake: Remove superflous function and header checks.

11 years agocmake: Add a check for strsignal().
Andreas Schneider [Mon, 15 Oct 2012 17:41:27 +0000 (19:41 +0200)]
cmake: Add a check for strsignal().

11 years agocmake: Fix build warning on OpenIndiana.
Andreas Schneider [Mon, 15 Oct 2012 17:39:39 +0000 (19:39 +0200)]
cmake: Fix build warning on OpenIndiana.

11 years agoexample: Move examples to top level dir.
Andreas Schneider [Mon, 15 Oct 2012 15:10:08 +0000 (17:10 +0200)]
example: Move examples to top level dir.

11 years agoinclude: Move include dir to top level.
Andreas Schneider [Mon, 15 Oct 2012 15:09:02 +0000 (17:09 +0200)]
include: Move include dir to top level.

11 years agocmocka: Fix a build warning on x86.
Andreas Schneider [Mon, 15 Oct 2012 15:01:58 +0000 (17:01 +0200)]
cmocka: Fix a build warning on x86.

11 years agoRemove the obsolite m4 files.
Andreas Schneider [Fri, 12 Oct 2012 21:19:28 +0000 (23:19 +0200)]
Remove the obsolite m4 files.

11 years agocmake: Mark failing tests as passed.
Andreas Schneider [Fri, 12 Oct 2012 21:10:50 +0000 (23:10 +0200)]
cmake: Mark failing tests as passed.

Check that failing tests are really failing. They fail by intention.

11 years agoexample: Fix 64bit problems in product_database_test.
Andreas Schneider [Fri, 12 Oct 2012 21:10:30 +0000 (23:10 +0200)]
example: Fix 64bit problems in product_database_test.