]>
granicus.if.org Git - check/log
bel2125 [Mon, 28 Aug 2017 21:22:13 +0000 (23:22 +0200)]
Unit test: Remove builds not supported by AppVeyor
bel2125 [Mon, 28 Aug 2017 20:41:35 +0000 (22:41 +0200)]
Specify AppVeyor image for unit tests using Visual Studio 2017
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)
bel2125 [Mon, 28 Aug 2017 18:00:12 +0000 (20:00 +0200)]
Merge branch 'master' into master
bel2125 [Sun, 27 Aug 2017 21:42:34 +0000 (23:42 +0200)]
Add definitions for isnan, isinf and isfinite, in case they are missing
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
bel2125 [Sun, 27 Aug 2017 08:14:18 +0000 (10:14 +0200)]
Unit test: INFINITY and NAN require math-h
bel2125 [Sat, 26 Aug 2017 20:26:51 +0000 (22:26 +0200)]
Fix copy paste error
bel2125 [Sat, 26 Aug 2017 19:49:14 +0000 (21:49 +0200)]
Use regex_t only if ENABLE_REGEX is defined
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
bel2125 [Sat, 26 Aug 2017 17:31:45 +0000 (19:31 +0200)]
Add various Visual Studio versions to AppVeyor CI
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)
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]').
bel2125 [Fri, 25 Aug 2017 21:15:34 +0000 (23:15 +0200)]
Use #if defined(_MSC_VER) instead of #if _MSC_VER
bel2125 [Fri, 25 Aug 2017 20:46:35 +0000 (22:46 +0200)]
Remove stdbool.h dependency from unit test
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).
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
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.
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.
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
Branden Archer [Sat, 13 May 2017 02:02:08 +0000 (22:02 -0400)]
Merge branch 'master' into message
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
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.
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.
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
Branden Archer [Wed, 3 May 2017 16:04:14 +0000 (12:04 -0400)]
Merge branch 'master' into cmake-gitignore
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
Branden Archer [Wed, 3 May 2017 02:05:11 +0000 (22:05 -0400)]
Merge branch 'master' into rm-useless-else
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
Viktor Nonov [Mon, 24 Apr 2017 00:14:48 +0000 (17:14 -0700)]
Link the library directory so tests can be compiled on OSX
Nicola Spanti (RyDroid) [Mon, 6 Mar 2017 22:12:59 +0000 (23:12 +0100)]
Removing some useless else
Nicola Spanti (RyDroid) [Sat, 4 Mar 2017 12:01:36 +0000 (13:01 +0100)]
Adding "rules" to .gitignore related to CMake
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
zhuhaow [Fri, 17 Feb 2017 02:55:27 +0000 (10:55 +0800)]
Fix typo
zhuhaow [Fri, 17 Feb 2017 02:55:00 +0000 (10:55 +0800)]
Revert test option to affirmative form
zhuhaow [Thu, 16 Feb 2017 15:25:01 +0000 (23:25 +0800)]
Add support to disable building test for check
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
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]
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
Branden Archer [Sat, 24 Dec 2016 02:51:34 +0000 (21:51 -0500)]
Merge branch 'master' into fix_cmake_libcompat_h
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
Branden Archer [Fri, 23 Dec 2016 17:43:23 +0000 (12:43 -0500)]
Merge branch 'master' into tests_regexp
Branden Archer [Fri, 23 Dec 2016 17:41:36 +0000 (12:41 -0500)]
Merge branch 'master' into fix_cmake_libcompat_h
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
Branden Archer [Fri, 23 Dec 2016 04:02:40 +0000 (23:02 -0500)]
Enable all unit tests for Cygwin
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
Branden Archer [Fri, 23 Dec 2016 02:19:05 +0000 (21:19 -0500)]
Remove out dated comment
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
Branden Archer [Thu, 22 Dec 2016 14:25:01 +0000 (09:25 -0500)]
Enable non-shell based tests on MinGW
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.
Dotsenko Andrey [Thu, 15 Dec 2016 18:59:25 +0000 (21:59 +0300)]
Fix outdated information in AUTHORS
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
Dotsenko Andrey [Thu, 15 Dec 2016 04:41:39 +0000 (07:41 +0300)]
Add regular expressions to internal tests
Branden Archer [Tue, 20 Dec 2016 20:15:22 +0000 (15:15 -0500)]
Merge pull request #81 from brarcher/tmp-dir-selection
Change how a tmp dir is found
Branden Archer [Sun, 18 Dec 2016 16:47:46 +0000 (11:47 -0500)]
Change how a tmp dir is found
It was found that on Windows the TMPDIR environment variable was
honored, but for Linux/et al it was not. This resulted in files ending
up in the build directory (the present directory when the tests
were run). As the test may not have permission to write in the build
directory, attempt to honor the P_tmpdir macro or TMPDIR environment
variable.
Branden Archer [Mon, 19 Dec 2016 21:03:11 +0000 (16:03 -0500)]
Merge pull request #96 from libcheck/cygwin
Enable Cygwin and MinGW builds on AppVeyor
Branden Archer [Mon, 19 Dec 2016 15:36:31 +0000 (10:36 -0500)]
Compile using MinGW and MinGW64 in AppVeyor
Branden Archer [Mon, 19 Dec 2016 01:42:26 +0000 (20:42 -0500)]
Enable cygwin builds on AppVeyor
Branden Archer [Sun, 18 Dec 2016 22:05:49 +0000 (17:05 -0500)]
Merge pull request #95 from libcheck/ctest-for-travis
Always emit unit test output for CMake on Travis-CI
Branden Archer [Sun, 18 Dec 2016 17:04:36 +0000 (12:04 -0500)]
Always emit unit test output for CMake on Travis-CI
Internally "make test" invokes ctest, and passing the -V flag will print the stdout from the unit tests.
Branden Archer [Sun, 18 Dec 2016 16:50:25 +0000 (11:50 -0500)]
Merge pull request #93 from libcheck/news-update
News update
Dotsenko Andrey [Sun, 18 Dec 2016 08:19:49 +0000 (11:19 +0300)]
Fix missing libcompat.h error while doing make install command
Related to issue #86.
Branden Archer [Sat, 17 Dec 2016 23:49:41 +0000 (18:49 -0500)]
Change rebase->merge when updating website
Branden Archer [Sat, 17 Dec 2016 23:49:00 +0000 (18:49 -0500)]
Restore development header in NEWS
Branden Archer [Sat, 17 Dec 2016 23:35:40 +0000 (18:35 -0500)]
Merge pull request #92 from libcheck/pre-release-0.11.0
Update for release 0.11.0
Branden Archer [Sat, 17 Dec 2016 20:00:18 +0000 (15:00 -0500)]
Update for release 0.11.0
Branden Archer [Thu, 15 Dec 2016 17:57:40 +0000 (12:57 -0500)]
Merge pull request #90 from libcheck/news-update
Mention new pointer macros in NEWS
Branden Archer [Thu, 15 Dec 2016 01:33:26 +0000 (20:33 -0500)]
Mention new pointer macros in NEWS
Branden Archer [Thu, 15 Dec 2016 01:29:35 +0000 (20:29 -0500)]
Merge pull request #89 from RyDroid/vera-fix
Fixing "errors" reported by vera++
Nicola Spanti (RyDroid) [Thu, 13 Oct 2016 10:15:18 +0000 (12:15 +0200)]
Fixing "errors" reported by vera++
Branden Archer [Wed, 14 Dec 2016 04:06:59 +0000 (23:06 -0500)]
Merge pull request #82 from libcheck/doc-update
Change wording in docs around NULL and macros
Branden Archer [Sun, 11 Dec 2016 23:18:47 +0000 (18:18 -0500)]
Change wording in docs around NULL and macros
Branden Archer [Wed, 14 Dec 2016 01:21:50 +0000 (20:21 -0500)]
Merge pull request #87 from 9fcc/ptr_null
Add pointer against NULL comparison macros
Dotsenko Andrey [Tue, 13 Dec 2016 04:44:36 +0000 (07:44 +0300)]
Add documentation for ck_assert_ptr_null and ck_assert_ptr_nonnull macros
Dotsenko Andrey [Mon, 12 Dec 2016 19:15:22 +0000 (22:15 +0300)]
Add tests for ck_assert_ptr_null and ck_assert_ptr_nonnull macros
Dotsenko Andrey [Mon, 12 Dec 2016 19:04:11 +0000 (22:04 +0300)]
Add ck_assert_ptr_null and ck_assert_ptr_nonnull macros to compare against NULL
Branden Archer [Tue, 13 Dec 2016 13:30:21 +0000 (08:30 -0500)]
Merge pull request #85 from libcheck/news-update
Add missing items to NEWS
Branden Archer [Tue, 13 Dec 2016 02:52:08 +0000 (21:52 -0500)]
Merge branch 'master' into news-update
Branden Archer [Tue, 13 Dec 2016 02:51:36 +0000 (21:51 -0500)]
Merge pull request #84 from libcheck/since-0.10.1-fix
Update @since tags that say 0.10.1
Branden Archer [Tue, 13 Dec 2016 01:54:44 +0000 (20:54 -0500)]
Add missing items to NEWS
Branden Archer [Tue, 13 Dec 2016 01:32:31 +0000 (20:32 -0500)]
Update @since tags that say 0.10.1
There is no 0.10.1 release planned, and instead the next release will be 0.11.0
Branden Archer [Tue, 13 Dec 2016 01:27:47 +0000 (20:27 -0500)]
Merge pull request #80 from 9fcc/pstr_comparisons
Add ck_assert_pstr_* macros with ability to compare undefined (NULL) strings
Dotsenko Andrey [Sat, 10 Dec 2016 19:32:58 +0000 (22:32 +0300)]
Add documentation for ck_assert_pstr_* macros
Dotsenko Andrey [Sat, 10 Dec 2016 19:31:38 +0000 (22:31 +0300)]
Add tests for ck_assert_pstr_* macros
Dotsenko Andrey [Sat, 10 Dec 2016 19:11:14 +0000 (22:11 +0300)]
Add ck_assert_pstr_* macros with ability to compare undefined (NULL) strings
Branden Archer [Sun, 11 Dec 2016 23:17:22 +0000 (18:17 -0500)]
Merge pull request #79 from 9fcc/str_null
ck_assert_str_*: fix segmentation fault while comparing to NULL
Dotsenko Andrey [Sat, 3 Dec 2016 19:04:34 +0000 (22:04 +0300)]
Add restrictions about NULL passed to ck_assert_str_* macros
Dotsenko Andrey [Sat, 3 Dec 2016 17:21:06 +0000 (20:21 +0300)]
Add tests for ck_assert_str_* with NULL passed
Dotsenko Andrey [Sat, 3 Dec 2016 17:20:53 +0000 (20:20 +0300)]
ck_assert_str_*: fix segmentation fault while comparing with NULL
Branden Archer [Sat, 10 Dec 2016 04:00:52 +0000 (23:00 -0500)]
Merge pull request #69 from 9fcc/master
Add comparison macros for floating point numbers (ck_assert_floating_*)
Branden Archer [Fri, 9 Dec 2016 20:10:21 +0000 (15:10 -0500)]
Merge branch 'master' into master
Branden Archer [Fri, 9 Dec 2016 19:56:10 +0000 (14:56 -0500)]
Merge pull request #71 from 9fcc/ctest_debug
Allow tests to be checked with Valgrind via ctest
Dotsenko Andrey [Mon, 21 Nov 2016 05:01:22 +0000 (08:01 +0300)]
Update AUTHORS
Dotsenko Andrey [Mon, 21 Nov 2016 05:00:44 +0000 (08:00 +0300)]
Change style of AUTHORS
Each author with his personal info must be on one line (his name, email, etc) and his contribution must be on the next line.
Dotsenko Andrey [Tue, 8 Nov 2016 20:59:31 +0000 (23:59 +0300)]
Add documentation for comparison of floating point numbers (ck_assert_floating_*)
Dotsenko Andrey [Tue, 8 Nov 2016 20:59:09 +0000 (23:59 +0300)]
Add unit tests for comparison macros for floating point numbers (ck_assert_floating_*)
Dotsenko Andrey [Tue, 8 Nov 2016 20:58:18 +0000 (23:58 +0300)]
Add comparison macros for floating point numbers (ck_assert_floating_*)
Branden Archer [Tue, 8 Nov 2016 01:51:52 +0000 (20:51 -0500)]
Merge branch 'master' into ctest_debug
Branden Archer [Tue, 8 Nov 2016 00:16:28 +0000 (19:16 -0500)]
Merge pull request #73 from brarcher/vs-ctest
Use ctest on VC builds to run unit tests
Dotsenko Andrey [Sun, 6 Nov 2016 07:47:03 +0000 (10:47 +0300)]
Allow tests to be checked with Valgrind via ctest
If some tests have segmentation faults those could be located with "ctest -D ExperimentalMemCheck".