platform/upstream/cmocka.git
12 years agoheader: Add printf attribute checking with gcc.
Andreas Schneider [Mon, 25 Jun 2012 12:43:32 +0000 (14:43 +0200)]
header: Add printf attribute checking with gcc.

12 years agocmake: Check for _GNU_SOURCE and add it if available.
Andreas Schneider [Mon, 25 Jun 2012 12:30:31 +0000 (14:30 +0200)]
cmake: Check for _GNU_SOURCE and add it if available.

This is needed for strsignal().

12 years agoinclude: Use C style comments.
Andreas Schneider [Thu, 14 Jun 2012 10:52:08 +0000 (12:52 +0200)]
include: Use C style comments.

12 years agoRename cmokery to cmocka for a fork.
Andreas Schneider [Thu, 14 Jun 2012 10:45:59 +0000 (12:45 +0200)]
Rename cmokery to cmocka for a fork.

13 years agobuild: Export global_last_failed_assert.
Andreas Schneider [Fri, 12 Aug 2011 11:12:35 +0000 (13:12 +0200)]
build: Export global_last_failed_assert.

13 years agobuild: Fix fail_if_leftover_values export.
Andreas Schneider [Fri, 12 Aug 2011 11:08:40 +0000 (13:08 +0200)]
build: Fix fail_if_leftover_values export.

fail_if_leftover_values is a static function now.

13 years agoexample: Fix build warnings of allocate_module.
Andreas Schneider [Tue, 31 May 2011 20:50:56 +0000 (22:50 +0200)]
example: Fix build warnings of allocate_module.

13 years agoexample: Fix a segfault in calculator test.
Andreas Schneider [Tue, 31 May 2011 20:48:15 +0000 (22:48 +0200)]
example: Fix a segfault in calculator test.

13 years agoexample: Fix build warnings of calculator.
Andreas Schneider [Tue, 31 May 2011 20:22:33 +0000 (22:22 +0200)]
example: Fix build warnings of calculator.

13 years agoexample: Fix build warnings of customer_database.
Andreas Schneider [Tue, 31 May 2011 20:02:33 +0000 (22:02 +0200)]
example: Fix build warnings of customer_database.

13 years agoexample: Fix build warnings of key_value.
Andreas Schneider [Tue, 31 May 2011 19:57:55 +0000 (21:57 +0200)]
example: Fix build warnings of key_value.

13 years agoexample: Fix build warnings of product_database_test.
Andreas Schneider [Tue, 31 May 2011 19:48:22 +0000 (21:48 +0200)]
example: Fix build warnings of product_database_test.

13 years agoexample: Fix build warnings of run_tests.
Andreas Schneider [Tue, 31 May 2011 19:44:54 +0000 (21:44 +0200)]
example: Fix build warnings of run_tests.

13 years agosrc: Fix expect_assert_failure bug not holding a char pointer.
Patrick Perry [Wed, 6 Apr 2011 02:47:27 +0000 (22:47 -0400)]
src: Fix expect_assert_failure bug not holding a char pointer.

13 years agomisc: Fix license in COPYING.
Andreas Schneider [Tue, 31 May 2011 19:17:09 +0000 (21:17 +0200)]
misc: Fix license in COPYING.

13 years agobuild: Fix Visual Studio warnings.
Andreas Schneider [Tue, 31 May 2011 19:08:32 +0000 (21:08 +0200)]
build: Fix Visual Studio warnings.

13 years agobuild: Remove obsolete autoconf.
Andreas Schneider [Tue, 31 May 2011 18:52:53 +0000 (20:52 +0200)]
build: Remove obsolete autoconf.

13 years agosrc: Fix includes.
Andreas Schneider [Tue, 31 May 2011 18:37:57 +0000 (20:37 +0200)]
src: Fix includes.

13 years agosrc: Fix a missing prototype warning.
Andreas Schneider [Tue, 31 May 2011 18:37:38 +0000 (20:37 +0200)]
src: Fix a missing prototype warning.

13 years agosrc: Fix pointer-to-int cast warnings on ILP32 platforms.
Steve Byan [Tue, 2 Mar 2010 02:47:35 +0000 (21:47 -0500)]
src: Fix pointer-to-int cast warnings on ILP32 platforms.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
13 years agosrc: Fix pointer casts to int on LP64 platforms.
Steve Byan [Tue, 2 Mar 2010 02:02:40 +0000 (21:02 -0500)]
src: Fix pointer casts to int on LP64 platforms.

This fixes cmockery defect 23.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
13 years agosrc: Fix pointer casts to smaller integral type.
Steve Byan [Tue, 2 Mar 2010 01:58:00 +0000 (20:58 -0500)]
src: Fix pointer casts to smaller integral type.

This fixes cmockery defect 21.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
13 years agosrc: Fix gcc compiler warning.
Steve Byan [Tue, 2 Mar 2010 01:28:23 +0000 (20:28 -0500)]
src: Fix gcc compiler warning.

This fixes cmockery defect 19

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
13 years agosrc: Fix GCC warning on Windows.
Steve Byan [Thu, 25 Feb 2010 19:36:32 +0000 (11:36 -0800)]
src: Fix GCC warning on Windows.

This removes a warning under gcc 4.4 on WinXP SP3 and mingw: Variable
'state' might get clobbered by 'longjmp'.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
Remove warning under gcc 4.4 on WinXP SP3 and mingw: Variable 'state' might get clobbered by 'longjmp'

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
13 years agosrc: Fix a bunch of build warnings.
Steve Byan [Wed, 17 Feb 2010 22:32:43 +0000 (17:32 -0500)]
src: Fix a bunch of build warnings.

This fixes cmockery issue #17.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
13 years agosrc: Fixed IsDebuggerPresent() function declaration.
ademin [Sat, 13 Feb 2010 18:17:38 +0000 (18:17 +0000)]
src: Fixed IsDebuggerPresent() function declaration.

This fixes cmockery issue #6. The IsDebuggerPresent() function is not
declared in Visual Studion 2005 and lower.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
13 years agosrc: Fixed integer conversion warning on HPUX.
ademin [Sat, 13 Feb 2010 18:12:29 +0000 (18:12 +0000)]
src: Fixed integer conversion warning on HPUX.

This fixes cmockery issue #10.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
13 years agosrc: Fixed a problem on HPUX.
ademin [Sat, 13 Feb 2010 18:10:22 +0000 (18:10 +0000)]
src: Fixed a problem on HPUX.

This fixes cmockery issue #12. This fixes the char* to int conversion
truncation warning on HP-UX in 64-bit mode.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
13 years agosrc: Fixed build on HP-UX IA64 v3.
ademin [Sat, 13 Feb 2010 18:07:27 +0000 (18:07 +0000)]
src: Fixed build on HP-UX IA64 v3.

This fixes cmockery defect #11. The strsignal() function is not
available on HP-UX IA64 v3.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
13 years agosrc: Use Google Test output format.
ademin [Sat, 13 Feb 2010 14:58:19 +0000 (14:58 +0000)]
src: Use Google Test output format.

http://groups.google.com/group/cmockery/browse_thread/thread/19cd0ec29c08ecb2

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
13 years agosrc: Fixed stdout and stderr problems.
ademin [Sat, 13 Feb 2010 14:17:56 +0000 (14:17 +0000)]
src: Fixed stdout and stderr problems.

This fixes cmockery defect #13.

Signed-off-by: Andreas Schneider <asn@cryptomilk.org>
13 years agobuild: Added a def file for windows build.
Andreas Schneider [Wed, 29 Dec 2010 17:42:27 +0000 (18:42 +0100)]
build: Added a def file for windows build.

This exports the symbols which are needed to get a .lib file.

13 years agobuild: Added CPack config for source and binary generators.
Andreas Schneider [Wed, 29 Dec 2010 14:30:03 +0000 (15:30 +0100)]
build: Added CPack config for source and binary generators.

13 years agobuild: Added example build.
Andreas Schneider [Wed, 29 Dec 2010 13:48:07 +0000 (14:48 +0100)]
build: Added example build.

13 years agobuild: Added option to build with static library.
Andreas Schneider [Wed, 29 Dec 2010 13:14:25 +0000 (14:14 +0100)]
build: Added option to build with static library.

13 years agobuild: Added CMake build of cmockery.
Andreas Schneider [Wed, 29 Dec 2010 12:51:21 +0000 (13:51 +0100)]
build: Added CMake build of cmockery.

15 years ago* Fixed assert_*() macros so they no longer truncate values to int.
stewartamiles [Fri, 28 Aug 2009 15:37:04 +0000 (15:37 +0000)]
* Fixed assert_*() macros so they no longer truncate values to int.
* Fixed printf format specifier for unsigned long long.
* Worked around a 64-bit gcc warning when casting a 32-bit integer to
  a pointer in the expect_assert_failure() macro.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@42 40f4469a-5155-0410-be90-2de3f0bae501

15 years agoFixed memory_not_equal_display_error() to display an error if memory blocks are the...
stewartamiles [Fri, 14 Aug 2009 16:15:48 +0000 (16:15 +0000)]
Fixed memory_not_equal_display_error() to display an error if memory blocks are the same.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@41 40f4469a-5155-0410-be90-2de3f0bae501

15 years agoFixed internal links (<a href="#.*">) to headings that contain spaces when index...
stewartamiles [Thu, 23 Jul 2009 16:37:20 +0000 (16:37 +0000)]
Fixed internal links (<a href="#.*">) to headings that contain spaces when index.html is converted to wiki format.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@40 40f4469a-5155-0410-be90-2de3f0bae501

15 years ago* Added bash (awk / sed) script to convert cmockery's html docs to a googlecode.com...
stewartamiles [Thu, 23 Jul 2009 16:37:13 +0000 (16:37 +0000)]
* Added bash (awk / sed) script to convert cmockery's html docs to a googlecode.com wiki.
* Modified index.html slightly to make the conversion from html to wiki easier.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@39 40f4469a-5155-0410-be90-2de3f0bae501

15 years agoFixed truncation in integer range checking event structure to store min and max value...
stewartamiles [Thu, 23 Jul 2009 16:37:02 +0000 (16:37 +0000)]
Fixed truncation in integer range checking event structure to store min and max values as LargestIntegralType rather than int.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@38 40f4469a-5155-0410-be90-2de3f0bae501

15 years ago* Support for mocking long long (>= 64-bit) parameters.
stewartamiles [Thu, 23 Jul 2009 16:36:49 +0000 (16:36 +0000)]
* Support for mocking long long (>= 64-bit) parameters.
* Changed tabs to spaces in cmockery.c/.h to be consistent with the other source files.
* Deleted all trailing whitespace.
* Fixed warnings introduced in tests after adding support for 64-bit mocks.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@37 40f4469a-5155-0410-be90-2de3f0bae501

15 years agoDeleted all trailing whitespace from cmockery source files.
stewartamiles [Thu, 23 Jul 2009 16:36:01 +0000 (16:36 +0000)]
Deleted all trailing whitespace from cmockery source files.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@36 40f4469a-5155-0410-be90-2de3f0bae501

15 years agoModified the windows makefile for cmockery to enable debug mode.
stewartamiles [Thu, 23 Jul 2009 16:35:37 +0000 (16:35 +0000)]
Modified the windows makefile for cmockery to enable debug mode.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@35 40f4469a-5155-0410-be90-2de3f0bae501

15 years agoIntegrated fix for cmockery "Issue 3: malloc.h not found on Mac OS Leopard".
stewartamiles [Thu, 23 Jul 2009 16:33:49 +0000 (16:33 +0000)]
Integrated fix for cmockery "Issue 3: malloc.h not found on Mac OS Leopard".

git-svn-id: http://cmockery.googlecode.com/svn/trunk@34 40f4469a-5155-0410-be90-2de3f0bae501

15 years agoFixed cmockery "Issue 9: assert_macro.c"
stewartamiles [Thu, 23 Jul 2009 16:33:33 +0000 (16:33 +0000)]
Fixed cmockery "Issue 9: assert_macro.c"

   Reported by khb.hnu, Apr 12, 2009
   Line30:

   for (i = 0; i < sizeof(status_code_string) / sizeof(status_code_string[0]);
   change it as follow:

   for (i = 0; i < sizeof(status_code_strings) / sizeof(status_code_strings[0]);

git-svn-id: http://cmockery.googlecode.com/svn/trunk@33 40f4469a-5155-0410-be90-2de3f0bae501

15 years agoFix for "Issue 7: value_in_set_display_error() falsely reports errors." reported...
stewartamiles [Thu, 23 Jul 2009 16:33:12 +0000 (16:33 +0000)]
Fix for "Issue 7: value_in_set_display_error() falsely reports errors." reported on code.google.com/p/cmockery.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@32 40f4469a-5155-0410-be90-2de3f0bae501

15 years agoFixed Issue 6 from code.google.com/p/cmockery : IsDebuggerPresent() function is not...
stewartamiles [Thu, 23 Jul 2009 16:32:54 +0000 (16:32 +0000)]
Fixed Issue 6 from code.google.com/p/cmockery : IsDebuggerPresent() function is not declared in Visual Studion 2005 and lower

git-svn-id: http://cmockery.googlecode.com/svn/trunk@31 40f4469a-5155-0410-be90-2de3f0bae501

15 years agoFixed code.google.com/p/cmockery Issue 5: Using will_return_count with count=-1 ...
stewartamiles [Thu, 23 Jul 2009 16:32:06 +0000 (16:32 +0000)]
Fixed code.google.com/p/cmockery Issue 5: Using will_return_count with count=-1 (to always repeat return value) results in assertion failure.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@30 40f4469a-5155-0410-be90-2de3f0bae501

15 years ago* Modified cmockery's windows makefile so that it's possible to build the library...
stewartamiles [Thu, 23 Jul 2009 16:31:35 +0000 (16:31 +0000)]
* Modified cmockery's windows makefile so that it's possible to build the library from any current directory.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@29 40f4469a-5155-0410-be90-2de3f0bae501

15 years agoIntegrated patch from "code.google.com/p/cmockery Issue 4: [PATCH] Support for "out...
stewartamiles [Thu, 23 Jul 2009 16:05:50 +0000 (16:05 +0000)]
Integrated patch from "code.google.com/p/cmockery Issue 4: [PATCH] Support for "out of source-tree" builds"

git-svn-id: http://cmockery.googlecode.com/svn/trunk@28 40f4469a-5155-0410-be90-2de3f0bae501

16 years agoMon Sep 15 17:21:22 2008 Google Inc. <opensource@google.com>
stewartamiles [Tue, 16 Sep 2008 01:16:42 +0000 (01:16 +0000)]
Mon Sep 15 17:21:22 2008 Google Inc. <opensource@google.com>
* cmockery: version 0.12
* Made it possible to specify additional compiler, lib tool and link
flags on Windows.
* Added Windows makefile to the tar ball.

Fri Aug 29 10:50:46 2008  Google Inc. <opensource@google.com>

git-svn-id: http://cmockery.googlecode.com/svn/trunk@18 40f4469a-5155-0410-be90-2de3f0bae501

16 years agoMon Sep 15 17:21:22 2008 Google Inc. <opensource@google.com>
stewartamiles [Tue, 16 Sep 2008 01:05:57 +0000 (01:05 +0000)]
Mon Sep 15 17:21:22 2008 Google Inc. <opensource@google.com>
* cmockery: version 0.12
* Made it possible to specify additional compiler, lib tool and link
flags on Windows.
* Added Windows makefile to the tar ball.

Fri Aug 29 10:50:46 2008  Google Inc. <opensource@google.com>

git-svn-id: http://cmockery.googlecode.com/svn/trunk@17 40f4469a-5155-0410-be90-2de3f0bae501

16 years agoMon Sep 15 17:21:22 2008 Google Inc. <opensource@google.com>
stewartamiles [Tue, 16 Sep 2008 00:32:50 +0000 (00:32 +0000)]
Mon Sep 15 17:21:22 2008 Google Inc. <opensource@google.com>
* cmockery: version 0.12
* Made it possible to specify additional compiler, lib tool and link
flags on Windows.
* Added Windows makefile to the tar ball.

Fri Aug 29 10:50:46 2008  Google Inc. <opensource@google.com>

git-svn-id: http://cmockery.googlecode.com/svn/trunk@15 40f4469a-5155-0410-be90-2de3f0bae501

16 years agoMon Sep 15 17:21:22 2008 Google Inc. <opensource@google.com>
stewartamiles [Tue, 16 Sep 2008 00:23:11 +0000 (00:23 +0000)]
Mon Sep 15 17:21:22 2008 Google Inc. <opensource@google.com>
* cmockery: version 0.12
* Made it possible to specify additional compiler, lib tool and link
flags on Windows.
* Added Windows makefile to the tar ball.

Fri Aug 29 10:50:46 2008  Google Inc. <opensource@google.com>

git-svn-id: http://cmockery.googlecode.com/svn/trunk@13 40f4469a-5155-0410-be90-2de3f0bae501

16 years agoFri Aug 29 10:50:46 2008 Google Inc. <opensource@google.com>
stewartamiles [Tue, 16 Sep 2008 00:20:10 +0000 (00:20 +0000)]
Fri Aug 29 10:50:46 2008  Google Inc. <opensource@google.com>

* cmockery: version 0.11
* Made it possible to specify executable, library and object output
  directories.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@12 40f4469a-5155-0410-be90-2de3f0bae501

16 years agoFri Aug 29 10:50:46 2008 Google Inc. <opensource@google.com>
stewartamiles [Tue, 2 Sep 2008 16:12:58 +0000 (16:12 +0000)]
Fri Aug 29 10:50:46 2008  Google Inc. <opensource@google.com>

* cmockery: version 0.11
* Made it possible to specify executable, library and object output
  directories.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@11 40f4469a-5155-0410-be90-2de3f0bae501

16 years agoFri Aug 29 10:50:46 2008 Google Inc. <opensource@google.com>
stewartamiles [Fri, 29 Aug 2008 23:41:49 +0000 (23:41 +0000)]
Fri Aug 29 10:50:46 2008  Google Inc. <opensource@google.com>

* cmockery: version 0.11
* Made it possible to specify executable, library and object output
  directories.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@10 40f4469a-5155-0410-be90-2de3f0bae501

16 years agoRemoved some empty temporary directories
stewartamiles [Fri, 29 Aug 2008 22:57:09 +0000 (22:57 +0000)]
Removed some empty temporary directories

git-svn-id: http://cmockery.googlecode.com/svn/trunk@9 40f4469a-5155-0410-be90-2de3f0bae501

16 years agoFri Aug 29 10:50:46 2008 Google Inc. <opensource@google.com>
stewartamiles [Fri, 29 Aug 2008 22:42:17 +0000 (22:42 +0000)]
Fri Aug 29 10:50:46 2008  Google Inc. <opensource@google.com>

* cmockery: version 0.11
* Made it possible to specify executable, library and object output
  directories.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@7 40f4469a-5155-0410-be90-2de3f0bae501

16 years agoFri Aug 29 10:50:46 2008 Google Inc. <opensource@google.com>
stewartamiles [Fri, 29 Aug 2008 17:58:06 +0000 (17:58 +0000)]
Fri Aug 29 10:50:46 2008  Google Inc. <opensource@google.com>

* cmockery: version 0.11
* Made it possible to specify executable, library and object output
  directories.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@5 40f4469a-5155-0410-be90-2de3f0bae501

16 years agoTue Aug 26 10:18:02 2008 Google Inc. <opensource@google.com>
stewartamiles [Tue, 26 Aug 2008 17:51:56 +0000 (17:51 +0000)]
Tue Aug 26 10:18:02 2008  Google Inc. <opensource@google.com>

* cmockery: initial release:
  A lightweight library to simplify and generalize the process of
  writing unit tests for C applications.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@3 40f4469a-5155-0410-be90-2de3f0bae501

16 years agoInitial directory structure.
(no author) [Tue, 26 Aug 2008 00:01:16 +0000 (00:01 +0000)]
Initial directory structure.

git-svn-id: http://cmockery.googlecode.com/svn/trunk@1 40f4469a-5155-0410-be90-2de3f0bae501