]> granicus.if.org Git - check/log
check
6 years agoCheck for strdup() failures in Check's unit tests
Branden Archer [Tue, 19 Jun 2018 20:12:40 +0000 (16:12 -0400)]
Check for strdup() failures in Check's unit tests

If a strdup() fails a NULL pointer would be passed to
mkstemp(), and it does not accept NULL pointers.

This was discovered using scan-build.

6 years agoMerge pull request #150 from ckdarby/patch-1
Branden Archer [Fri, 12 Jan 2018 15:29:32 +0000 (10:29 -0500)]
Merge pull request #150 from ckdarby/patch-1

Add make install

6 years agoAdd make install
Cory Kennedy-Darby [Wed, 10 Jan 2018 16:47:54 +0000 (11:47 -0500)]
Add make install

This step is missing from the README

7 years agoMerge pull request #147 from libcheck/sourceforge-refs
Branden Archer [Sun, 26 Nov 2017 16:28:17 +0000 (11:28 -0500)]
Merge pull request #147 from libcheck/sourceforge-refs

Update various reference to Sourceforge

7 years agoFix title of web/install.html.
James Prior [Sat, 25 Nov 2017 22:07:02 +0000 (17:07 -0500)]
Fix title of web/install.html.

7 years agoUpdate various reference to Sourceforge
Branden Archer [Sat, 25 Nov 2017 23:57:37 +0000 (18:57 -0500)]
Update various reference to Sourceforge

These should mention GitHub instead.

7 years agoUpdate some links from sourceforge to github.
James Prior [Sat, 25 Nov 2017 21:37:05 +0000 (16:37 -0500)]
Update some links from sourceforge to github.

7 years agoMerge pull request #143 from foviedoITBA/doc_update
Branden Archer [Sat, 18 Nov 2017 00:11:58 +0000 (19:11 -0500)]
Merge pull request #143 from foviedoITBA/doc_update

Fixed typo in ck_assert_str_eq doc

7 years agoFixed typo in ck_assert_str_eq doc
foviedoITBA [Thu, 16 Nov 2017 19:55:30 +0000 (16:55 -0300)]
Fixed typo in ck_assert_str_eq doc

7 years agoMerge pull request #136 from libcheck/news
Branden Archer [Tue, 24 Oct 2017 23:33:44 +0000 (19:33 -0400)]
Merge pull request #136 from libcheck/news

Restore development header in NEWS

7 years agoMerge branch 'master' into news
Branden Archer [Mon, 23 Oct 2017 23:14:38 +0000 (19:14 -0400)]
Merge branch 'master' into news

7 years agoMerge pull request #137 from libcheck/float-macro-warning
Branden Archer [Sun, 22 Oct 2017 20:31:38 +0000 (16:31 -0400)]
Merge pull request #137 from libcheck/float-macro-warning

Add warning on floating point eq and ne assertions

7 years agoAdd warning on floating point eq and ne assertions
Branden Archer [Sun, 22 Oct 2017 16:35:49 +0000 (12:35 -0400)]
Add warning on floating point eq and ne assertions

The usefulness of the float/double/ldouble eq and ne macros is very limited. Comparing
the results of a floating point computation should be done with some tolerance, instead
of expecting an exact answer. There may be differences on different platforms, etc.

To this end, some warnings are added to the eq and ne functions, instead directing users
to use the _tol functions instead.

7 years agoRestore development header in NEWS
Branden Archer [Fri, 20 Oct 2017 20:32:08 +0000 (16:32 -0400)]
Restore development header in NEWS

7 years agoMerge pull request #135 from libcheck/pre-v0.12 0.12.0
Branden Archer [Fri, 20 Oct 2017 12:44:10 +0000 (08:44 -0400)]
Merge pull request #135 from libcheck/pre-v0.12

Pre v0.12

7 years agoUpdate for release v0.12.0
Branden Archer [Fri, 20 Oct 2017 00:59:26 +0000 (20:59 -0400)]
Update for release v0.12.0

7 years agoCorrect typo in HACKING
Branden Archer [Fri, 20 Oct 2017 00:59:00 +0000 (20:59 -0400)]
Correct typo in HACKING

7 years agoMerge pull request #134 from libcheck/news
Branden Archer [Thu, 19 Oct 2017 21:02:56 +0000 (17:02 -0400)]
Merge pull request #134 from libcheck/news

Update NEWS

7 years agoUpdate NEWS
Branden Archer [Thu, 19 Oct 2017 15:03:21 +0000 (11:03 -0400)]
Update NEWS

7 years agoMerge pull request #132 from libcheck/cmake-license
Branden Archer [Tue, 26 Sep 2017 01:18:12 +0000 (21:18 -0400)]
Merge pull request #132 from libcheck/cmake-license

Add BSD license for example CMakeLists

7 years agoAdd BSD license for example CMakeLists
Branden Archer [Mon, 25 Sep 2017 19:56:55 +0000 (15:56 -0400)]
Add BSD license for example CMakeLists

By default this file was LGPL licensed. However, it is not
concerning if someone uses this example and
does not contribute back fixes.

7 years agoMerge pull request #128 from orenbenkiki/master
Branden Archer [Fri, 1 Sep 2017 12:35:47 +0000 (08:35 -0400)]
Merge pull request #128 from orenbenkiki/master

Allow dynamic configuration of maximal assertion message size.

7 years agoMerge branch 'master' into master
Branden Archer [Fri, 1 Sep 2017 11:09:42 +0000 (07:09 -0400)]
Merge branch 'master' into master

7 years agoMerge pull request #129 from civetweb/master
Branden Archer [Fri, 1 Sep 2017 10:38:17 +0000 (06:38 -0400)]
Merge pull request #129 from civetweb/master

Visual Studio 2010 support

7 years agoSet license statement
bel2125 [Fri, 1 Sep 2017 08:47:03 +0000 (10:47 +0200)]
Set license statement

7 years agoAdd fpclassify to Makefile.am and comment VS2008 build
bel2125 [Thu, 31 Aug 2017 15:37:29 +0000 (17:37 +0200)]
Add fpclassify to Makefile.am and comment VS2008 build

7 years agoAdd prototype for fpclassify
bel2125 [Thu, 31 Aug 2017 07:58:54 +0000 (09:58 +0200)]
Add prototype for fpclassify

7 years agoAllow modifying the maximal message size by dynamically changing the environment...
Oren Ben-Kiki [Thu, 31 Aug 2017 04:17:43 +0000 (07:17 +0300)]
Allow modifying the maximal message size by dynamically changing the environment variable.

7 years agoTry yet another command line for VS2008
bel2125 [Wed, 30 Aug 2017 21:07:06 +0000 (23:07 +0200)]
Try yet another command line for VS2008

7 years agoTry another command line for VS2008
bel2125 [Wed, 30 Aug 2017 19:32:14 +0000 (21:32 +0200)]
Try another command line for VS2008

7 years agoClean up and document the appveyor.yml file
bel2125 [Wed, 30 Aug 2017 19:22:14 +0000 (21:22 +0200)]
Clean up and document the appveyor.yml file

7 years agoappveyor.yml: replace exit in test step by additional environment variable
bel2125 [Wed, 30 Aug 2017 18:10:15 +0000 (20:10 +0200)]
appveyor.yml: replace exit in test step by additional environment variable

7 years agoAppVeyor build for ARM CPUs can not be tested on x86/x64 build machines
bel2125 [Wed, 30 Aug 2017 17:21:15 +0000 (19:21 +0200)]
AppVeyor build for ARM CPUs can not be tested on x86/x64 build machines

7 years agoUse size_t for maximal message size, allow it to be modified.
Oren Ben-Kiki [Wed, 30 Aug 2017 16:57:41 +0000 (19:57 +0300)]
Use size_t for maximal message size, allow it to be modified.

7 years agoSome preprocessor magic for defining INFINITY and NAN
bel2125 [Wed, 30 Aug 2017 14:04:21 +0000 (16:04 +0200)]
Some preprocessor magic for defining INFINITY and NAN

7 years agoTest additional AppVeyor builds
bel2125 [Wed, 30 Aug 2017 11:13:05 +0000 (13:13 +0200)]
Test additional AppVeyor builds

7 years agoDefine INFINITY and NAN as macro
bel2125 [Tue, 29 Aug 2017 23:00:30 +0000 (01:00 +0200)]
Define INFINITY and NAN as macro

7 years agoTest additional AppVeyor builds
bel2125 [Tue, 29 Aug 2017 22:45:10 +0000 (00:45 +0200)]
Test additional AppVeyor builds

7 years agoTest additional AppVeyor builds
bel2125 [Tue, 29 Aug 2017 22:28:02 +0000 (00:28 +0200)]
Test additional AppVeyor builds

7 years agoTest additional AppVeyor builds
bel2125 [Tue, 29 Aug 2017 22:07:45 +0000 (00:07 +0200)]
Test additional AppVeyor builds

7 years agoMove infinity/not-a-number handling to lib directory
bel2125 [Tue, 29 Aug 2017 20:50:57 +0000 (22:50 +0200)]
Move infinity/not-a-number handling to lib directory

7 years agoMerge test scripts as well, fixed comments.
Oren Ben-Kiki [Tue, 29 Aug 2017 04:47:31 +0000 (07:47 +0300)]
Merge test scripts as well, fixed comments.

7 years agoUnit test: Remove builds not supported by AppVeyor
bel2125 [Mon, 28 Aug 2017 21:22:13 +0000 (23:22 +0200)]
Unit test: Remove builds not supported by AppVeyor

7 years agoSpecify AppVeyor image for unit tests using Visual Studio 2017
bel2125 [Mon, 28 Aug 2017 20:41:35 +0000 (22:41 +0200)]
Specify AppVeyor image for unit tests using Visual Studio 2017

7 years agoAppVeyor unit test: Add all Visual Studio builds that are supported (and maybe drop...
bel2125 [Mon, 28 Aug 2017 18:38:27 +0000 (20:38 +0200)]
AppVeyor unit test: Add all Visual Studio builds that are supported (and maybe drop some outdated ones later)

7 years agoMerge branch 'master' into master
bel2125 [Mon, 28 Aug 2017 18:00:12 +0000 (20:00 +0200)]
Merge branch 'master' into master

7 years agoHave tests clean up the log file on success.
Oren Ben-Kiki [Mon, 28 Aug 2017 05:21:31 +0000 (08:21 +0300)]
Have tests clean up the log file on success.

7 years agoMerge check max msg size tests, fix comments.
Oren Ben-Kiki [Mon, 28 Aug 2017 04:52:31 +0000 (07:52 +0300)]
Merge check max msg size tests, fix comments.

7 years agoAdd definitions for isnan, isinf and isfinite, in case they are missing
bel2125 [Sun, 27 Aug 2017 21:42:34 +0000 (23:42 +0200)]
Add definitions for isnan, isinf and isfinite, in case they are missing

7 years agoAdd tests for modifying maximal message size.
Oren Ben-Kiki [Sun, 27 Aug 2017 20:49:18 +0000 (23:49 +0300)]
Add tests for modifying maximal message size.

7 years agoFix @code braces.
Oren Ben-Kiki [Sun, 27 Aug 2017 19:12:12 +0000 (22:12 +0300)]
Fix @code braces.

7 years agoDocument the new function, give precedence to environment.
Oren Ben-Kiki [Sun, 27 Aug 2017 18:54:52 +0000 (21:54 +0300)]
Document the new function, give precedence to environment.

7 years agoGenerate NAN and INFINITY in case they are not defined by the system headers
bel2125 [Sun, 27 Aug 2017 18:27:49 +0000 (20:27 +0200)]
Generate NAN and INFINITY in case they are not defined by the system headers

7 years agoUnit test: INFINITY and NAN require math-h
bel2125 [Sun, 27 Aug 2017 08:14:18 +0000 (10:14 +0200)]
Unit test: INFINITY and NAN require math-h

7 years agoAllow dynamic configuration of maximal assertion message size.
Oren Ben-Kiki [Sun, 27 Aug 2017 05:46:53 +0000 (08:46 +0300)]
Allow dynamic configuration of maximal assertion message size.

7 years agoFix copy paste error
bel2125 [Sat, 26 Aug 2017 20:26:51 +0000 (22:26 +0200)]
Fix copy paste error

7 years agoUse regex_t only if ENABLE_REGEX is defined
bel2125 [Sat, 26 Aug 2017 19:49:14 +0000 (21:49 +0200)]
Use regex_t only if ENABLE_REGEX is defined

7 years agoAdapt unit tests to C89/C90 by moving variable declarations to top of functions
bel2125 [Sat, 26 Aug 2017 18:55:03 +0000 (20:55 +0200)]
Adapt unit tests to C89/C90 by moving variable declarations to top of functions

7 years agoAdd various Visual Studio versions to AppVeyor CI
bel2125 [Sat, 26 Aug 2017 17:31:45 +0000 (19:31 +0200)]
Add various Visual Studio versions to AppVeyor CI

7 years agoMerge pull request #126 from cleishm/master
Branden Archer [Sat, 26 Aug 2017 15:58:07 +0000 (11:58 -0400)]
Merge pull request #126 from cleishm/master

Fix invalid prototype for tcase_name(void)

7 years agoFix invalid prototype for tcase_name(void)
Chris Leishman [Sat, 26 Aug 2017 05:26:56 +0000 (22:26 -0700)]
Fix invalid prototype for tcase_name(void)

The existing prototype in check.h is `const char* tcase_name()`. This
causes issues on platforms that use strict prototype checking, e.g. the
latest clang compiler with -Wstrict-prototypes ('this function
declaration is not a prototype [-Werror,-Wstrict-prototypes]').

7 years agoUse #if defined(_MSC_VER) instead of #if _MSC_VER
bel2125 [Fri, 25 Aug 2017 21:15:34 +0000 (23:15 +0200)]
Use #if defined(_MSC_VER) instead of #if _MSC_VER

7 years agoRemove stdbool.h dependency from unit test
bel2125 [Fri, 25 Aug 2017 20:46:35 +0000 (22:46 +0200)]
Remove stdbool.h dependency from unit test

7 years agoRemove dependency to stdbool.h
bel2125 [Fri, 25 Aug 2017 18:29:18 +0000 (20:29 +0200)]
Remove dependency to stdbool.h

While this header is standard in C99, it does not exist in C89/C90.
Microsoft Visual Studio added this header only in version 2013.
Still common common compilers Visual Studio 2010 and 2012 (and all earlier)
do not support it.

Here we do not really have a benefit as compared to just using 'int'
instead of 'bool', so this dependency can easily be avoided to support
Visual Studio 2010 (see also https://github.com/libcheck/check/issues/125).

7 years agoMerge pull request #124 from brarcher/remove-include
Branden Archer [Tue, 25 Jul 2017 13:39:21 +0000 (09:39 -0400)]
Merge pull request #124 from brarcher/remove-include

Define pid_t in check.h for Windows

7 years agoDefine pid_t in check.h if on Windows
Branden Archer [Mon, 24 Jul 2017 02:58:44 +0000 (22:58 -0400)]
Define pid_t in check.h if on Windows

Windows will need the definition of pid_t for a function
in check.h, and on Windows pid_t is not defined in sys/types.h.

7 years agoDo not inlcude libcompat.h in ex_output.c
Branden Archer [Mon, 24 Jul 2017 02:32:36 +0000 (22:32 -0400)]
Do not inlcude libcompat.h in ex_output.c

This program should be similar to what someone else could
use from Check. Removing this header will help determine
if anything in check.h is undefined.

7 years agoMerge pull request #123 from libcheck/message
Branden Archer [Sat, 13 May 2017 13:22:49 +0000 (09:22 -0400)]
Merge pull request #123 from libcheck/message

Update 'no messaging setup' message

7 years agoMerge branch 'master' into message
Branden Archer [Sat, 13 May 2017 02:02:08 +0000 (22:02 -0400)]
Merge branch 'master' into message

7 years agoMerge pull request #122 from libcheck/bail-tmp-file
Branden Archer [Sat, 13 May 2017 02:01:50 +0000 (22:01 -0400)]
Merge pull request #122 from libcheck/bail-tmp-file

Bail on error if cannot create pipe file

7 years agoUpdate 'no messaging setup' message
Branden Archer [Sat, 13 May 2017 01:43:37 +0000 (21:43 -0400)]
Update 'no messaging setup' message

It was found that if a ck_assert() or ck_abort() call was made when not running a test
with srunner_run() that the current process would attempt to report a test
failure to the process which started the test, of which none exists. As a result,
finding no pipe file setup, the process aborts. This is all due to an API usage
mistake, as ck_assert* and ck_abort() should not be called outside of a
test or setup/teardown function.

To make it more clear that if one hits this it is a API usage issue, changing the
failure message which is reported.

7 years agoBail on error if cannot create pipe file
Branden Archer [Wed, 10 May 2017 02:29:19 +0000 (22:29 -0400)]
Bail on error if cannot create pipe file

There have been cases where a test will fail with "No messaging setup". This is believed to be
a permissions issue, where the test process is unable to create a file in the folder selected
for temporary files. To make this error more explicit, if creating a temporary file fails bail.

7 years agoMerge pull request #118 from RyDroid/cmake-gitignore
Branden Archer [Wed, 3 May 2017 22:29:20 +0000 (18:29 -0400)]
Merge pull request #118 from RyDroid/cmake-gitignore

Adding "rules" to .gitignore related to CMake

7 years agoMerge branch 'master' into cmake-gitignore
Branden Archer [Wed, 3 May 2017 16:04:14 +0000 (12:04 -0400)]
Merge branch 'master' into cmake-gitignore

7 years agoMerge pull request #119 from RyDroid/rm-useless-else
Branden Archer [Wed, 3 May 2017 16:02:18 +0000 (12:02 -0400)]
Merge pull request #119 from RyDroid/rm-useless-else

Removing some useless else

7 years agoMerge branch 'master' into rm-useless-else
Branden Archer [Wed, 3 May 2017 02:05:11 +0000 (22:05 -0400)]
Merge branch 'master' into rm-useless-else

7 years agoMerge pull request #121 from viktornonov/master
Branden Archer [Wed, 3 May 2017 01:58:53 +0000 (21:58 -0400)]
Merge pull request #121 from viktornonov/master

Fix the Money build example using CMake

7 years agoLink the library directory so tests can be compiled on OSX
Viktor Nonov [Mon, 24 Apr 2017 00:14:48 +0000 (17:14 -0700)]
Link the library directory so tests can be compiled on OSX

7 years agoRemoving some useless else
Nicola Spanti (RyDroid) [Mon, 6 Mar 2017 22:12:59 +0000 (23:12 +0100)]
Removing some useless else

7 years agoAdding "rules" to .gitignore related to CMake
Nicola Spanti (RyDroid) [Sat, 4 Mar 2017 12:01:36 +0000 (13:01 +0100)]
Adding "rules" to .gitignore related to CMake

7 years agoMerge pull request #114 from zhuhaow/master
Branden Archer [Sat, 18 Feb 2017 22:12:33 +0000 (17:12 -0500)]
Merge pull request #114 from zhuhaow/master

Add support to disable building test for check

7 years agoFix typo
zhuhaow [Fri, 17 Feb 2017 02:55:27 +0000 (10:55 +0800)]
Fix typo

7 years agoRevert test option to affirmative form
zhuhaow [Fri, 17 Feb 2017 02:55:00 +0000 (10:55 +0800)]
Revert test option to affirmative form

7 years agoAdd support to disable building test for check
zhuhaow [Thu, 16 Feb 2017 15:25:01 +0000 (23:25 +0800)]
Add support to disable building test for check

7 years agoMerge pull request #111 from njh/invalid-suffix-on-literal
Branden Archer [Sat, 28 Jan 2017 03:09:47 +0000 (22:09 -0500)]
Merge pull request #111 from njh/invalid-suffix-on-literal

Fix for "invalid suffix on literal" error in clang

7 years agoFix for "invalid suffix on literal" error in clang
Nicholas Humfrey [Sun, 15 Jan 2017 23:19:03 +0000 (23:19 +0000)]
Fix for "invalid suffix on literal" error in clang
Invalid suffix on literal; C++11 requires a space between literal and identifier [-Wreserved-user-defined-literal]

8 years agoMerge pull request #94 from 9fcc/fix_cmake_libcompat_h
Branden Archer [Sat, 24 Dec 2016 04:16:03 +0000 (23:16 -0500)]
Merge pull request #94 from 9fcc/fix_cmake_libcompat_h

Fix missing libcompat.h error while doing make install command

8 years agoMerge branch 'master' into fix_cmake_libcompat_h
Branden Archer [Sat, 24 Dec 2016 02:51:34 +0000 (21:51 -0500)]
Merge branch 'master' into fix_cmake_libcompat_h

8 years agoMerge pull request #91 from 9fcc/tests_regexp
Branden Archer [Sat, 24 Dec 2016 02:51:07 +0000 (21:51 -0500)]
Merge pull request #91 from 9fcc/tests_regexp

Add regular expressions support for internal tests checking

8 years agoMerge branch 'master' into tests_regexp
Branden Archer [Fri, 23 Dec 2016 17:43:23 +0000 (12:43 -0500)]
Merge branch 'master' into tests_regexp

8 years agoMerge branch 'master' into fix_cmake_libcompat_h
Branden Archer [Fri, 23 Dec 2016 17:41:36 +0000 (12:41 -0500)]
Merge branch 'master' into fix_cmake_libcompat_h

8 years agoMerge pull request #103 from libcheck/cygwin
Branden Archer [Fri, 23 Dec 2016 17:40:51 +0000 (12:40 -0500)]
Merge pull request #103 from libcheck/cygwin

Enable all unit test programs for Cygwin

8 years agoEnable all unit tests for Cygwin
Branden Archer [Fri, 23 Dec 2016 04:02:40 +0000 (23:02 -0500)]
Enable all unit tests for Cygwin

8 years agoDisable SIGFPE tests for Cygwin until fixed
Branden Archer [Fri, 23 Dec 2016 04:01:21 +0000 (23:01 -0500)]
Disable SIGFPE tests for Cygwin until fixed

The test_fpe and test_mark_point tests currently fail on Cygwin.
Instead of the test process receiving a SIGFPE it instead fails
with a SIGSEGV. The reason is not yet know. However, attempting a
simple program that installs a SIGFPE handler then does a
raise(SIGFPE) does result in the handler being called.

This tests need to be enabled again once the reason for the failures
is resolved.

https://github.com/libcheck/check/issues/97

8 years agoRemove out dated comment
Branden Archer [Fri, 23 Dec 2016 02:19:05 +0000 (21:19 -0500)]
Remove out dated comment

8 years agoMerge pull request #102 from libcheck/fix-printf-format
Branden Archer [Fri, 23 Dec 2016 02:04:13 +0000 (21:04 -0500)]
Merge pull request #102 from libcheck/fix-printf-format

Remove usage of "lg" in printf format

8 years agoEnable non-shell based tests on MinGW
Branden Archer [Thu, 22 Dec 2016 14:25:01 +0000 (09:25 -0500)]
Enable non-shell based tests on MinGW

8 years agoRemove usage of "lg" in printf format
Branden Archer [Thu, 22 Dec 2016 19:13:18 +0000 (14:13 -0500)]
Remove usage of "lg" in printf format

MinGW on Windows does not "lg". The reason is that MinGW mixes
GCC and the MSVC runtime. For GCC a long double is either
96-bit or 128-bit type for long double on x86 or x64 targets
(see http://gcc.gnu.org/onlinedocs/gcc/i386-and-x86_002d64-Options.html).
However, MSVC uses a 64-bit type
(see http://msdn.microsoft.com/en-us/library/9cx8xs15.aspx).
That means for MSVC "double" and "long double" are the same.

Because of this mismatch, the "l" in "lg", which is safely ignored
on Linux and BSD systems is not safely ignored in MSVC systems
where GCC is used to compile. This issue does not arise when using
VS compiler on Windows.

8 years agoFix outdated information in AUTHORS
Dotsenko Andrey [Thu, 15 Dec 2016 18:59:25 +0000 (21:59 +0300)]
Fix outdated information in AUTHORS

8 years agoAdd tests for ck_assert_float_nonnan, ck_assert_double_nonnan and ck_assert_ldouble_n...
Dotsenko Andrey [Thu, 15 Dec 2016 18:47:57 +0000 (21:47 +0300)]
Add tests for ck_assert_float_nonnan, ck_assert_double_nonnan and ck_assert_ldouble_nonnan macros