]>
granicus.if.org Git - check/log
Mikko Johannes Koivunalho [Wed, 28 Aug 2019 12:08:09 +0000 (14:08 +0200)]
Fix indentation
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Wed, 28 Aug 2019 12:07:39 +0000 (14:07 +0200)]
Remove useless if clause.
warning: comparison of constant -1 with expression of type
'clockid_t' is always false [-Wtautological-constant-out-of-range-compare]
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Wed, 28 Aug 2019 11:12:22 +0000 (13:12 +0200)]
Add more info to AUTHORS
Mikko Johannes Koivunalho [Mon, 19 Aug 2019 17:11:04 +0000 (19:11 +0200)]
Initialize buffer to ensure it is empty
snprintf.c:918:31: warning: The left operand of '!=' is a garbage value
for (strln = 0; value[strln] != '\0' &&
~~~~~~~~~~~~ ^
Move "#include <string.h>" from testing related code to main code
because memset(3) depends on <string.h>.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Wed, 14 Aug 2019 08:56:25 +0000 (10:56 +0200)]
Fix declaration of extern int errno
if HAVE_VSNPRINTF is declared, <errno.h> is not included.
So we need to declare it ourselves.
Error (Travis SCAN_BUILD=YES):
libtool: compile: /usr/local/clang-7.0.0/bin/../libexec/ccc-analyzer -DHAVE_CONFIG_H -I. -I.. -g -O2 -Wextra -Wstrict-prototypes -Wmissing-prototypes -Wwrite-strings -Wno-variadic-macros -Wimport -Wfatal-errors -Wformat=2 -Winit-self -Wmissing-include-dirs -Wswitch-default -Wunknown-pragmas -MT snprintf.lo -MD -MP -MF .deps/snprintf.Tpo -c snprintf.c -fPIC -DPIC -o .libs/snprintf.o
764snprintf.c:487:1: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
extern int errno;
^
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@inoviagroup.se>
Mikko Johannes Koivunalho [Tue, 13 Aug 2019 18:57:54 +0000 (20:57 +0200)]
Fix indentation
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Tue, 13 Aug 2019 18:53:46 +0000 (20:53 +0200)]
Fix warnings by flag -Wswitch-default
E.g.
check_print.c:114:13: warning: switch missing default case [-Wswitch-default]
switch (next)
^
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Sat, 13 Jul 2019 14:49:09 +0000 (07:49 -0700)]
Merge pull request #204 from mikkoi/add-checkmk-to-cmake
Add checkmk to cmake
Mikko Johannes Koivunalho [Sun, 9 Jun 2019 09:22:07 +0000 (11:22 +0200)]
Make checkmk installable
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 6 Jul 2019 09:25:57 +0000 (11:25 +0200)]
Add issue #196 to NEWS
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 6 Jul 2019 08:19:01 +0000 (10:19 +0200)]
Add Mikko Koivunalho to AUTHORS (contributor)
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 6 Jul 2019 08:17:49 +0000 (10:17 +0200)]
Increase version to 0.13.0
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Mon, 17 Jun 2019 04:56:33 +0000 (21:56 -0700)]
Merge pull request #198 from mikkoi/fix-cmake-project-name
Fix bug with CMake project variable
Mikko Johannes Koivunalho [Sat, 8 Jun 2019 11:54:32 +0000 (13:54 +0200)]
Fix bug with CMake project variable
"
I tried to embed the check source code into my project in a "3rdparty" folder. Turns out that the build fails because of the usage of CMAKE_PROJECT_NAME instead of PROJECT_NAME in the check CMakeLists.txt
CMAKE_PROJECT_NAME is the name of the topmost project, that is in my case my own project.
Changing to PROJECT_NAME worked fine.
"
https://github.com/libcheck/check/issues/194
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Tue, 4 Jun 2019 15:07:15 +0000 (08:07 -0700)]
Merge pull request #189 from mikkoi/improve-test_mem_leaks
Fix script to work from any path and to take argument
Branden Archer [Tue, 4 Jun 2019 00:01:11 +0000 (17:01 -0700)]
Merge branch 'master' into improve-test_mem_leaks
Branden Archer [Mon, 3 Jun 2019 23:57:45 +0000 (16:57 -0700)]
Merge pull request #193 from mikkoi/fix-todo-indentation
Realign TODO indentations
Mikko Koivunalho [Fri, 31 May 2019 08:30:17 +0000 (11:30 +0300)]
Fix script to work from any path and to take argument
Signed-off-by: Mikko Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Mon, 3 Jun 2019 04:00:52 +0000 (21:00 -0700)]
Merge branch 'master' into fix-todo-indentation
Branden Archer [Mon, 3 Jun 2019 03:58:53 +0000 (20:58 -0700)]
Merge pull request #191 from mikkoi/fix-signed-comparison
Change type from signed int to size_t
Branden Archer [Mon, 3 Jun 2019 00:34:17 +0000 (17:34 -0700)]
Merge branch 'master' into fix-signed-comparison
Branden Archer [Mon, 3 Jun 2019 00:33:10 +0000 (17:33 -0700)]
Merge pull request #190 from mikkoi/fix-abbreviations
Eliminate abbreviations like nf for number_failed
Branden Archer [Sun, 2 Jun 2019 22:07:50 +0000 (15:07 -0700)]
Merge branch 'master' into fix-abbreviations
Branden Archer [Sun, 2 Jun 2019 22:06:41 +0000 (15:06 -0700)]
Merge pull request #192 from mikkoi/fix-function-definition
Fix int main() function to "int main(void)"
Branden Archer [Sun, 2 Jun 2019 17:27:36 +0000 (10:27 -0700)]
Merge branch 'master' into fix-function-definition
Branden Archer [Sat, 1 Jun 2019 19:13:17 +0000 (12:13 -0700)]
Merge pull request #185 from mikkoi/improve-import
Improve import to CMake projects
Mikko Johannes Koivunalho [Fri, 31 May 2019 21:00:20 +0000 (23:00 +0200)]
Realign TODO indentations
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Fri, 31 May 2019 20:02:56 +0000 (22:02 +0200)]
Fix int main() function to "int main(void)"
check_mem_leaks.c:35:5: warning: function declaration isn’t a prototype [-Wstrict-prototypes]
int main ()
^~~~
Mikko Koivunalho [Fri, 31 May 2019 14:52:15 +0000 (17:52 +0300)]
Change type from signed int to size_t
check_pack.c:327:10: warning: comparison between signed and unsigned
integer expressions [-Wsign-compare]
if(n > get_max_msg_size())
^
Signed-off-by: Mikko Koivunalho <mikko.koivunalho@iki.fi>
Mikko Koivunalho [Fri, 31 May 2019 14:36:50 +0000 (17:36 +0300)]
Eliminate abbreviations like nf for number_failed
Signed-off-by: Mikko Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Sat, 18 May 2019 17:01:14 +0000 (10:01 -0700)]
Merge branch 'master' into improve-import
Branden Archer [Sat, 18 May 2019 15:45:20 +0000 (08:45 -0700)]
Merge pull request #182 from mikkoi/fix-typo
Fix typo, CMAKE_VERISON -> CMAKE_VERSION
Mikko Johannes Koivunalho [Sat, 11 May 2019 12:18:28 +0000 (14:18 +0200)]
Instructions how to import into CMake 3 project
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sat, 11 May 2019 11:30:36 +0000 (13:30 +0200)]
Improve CMake build, specify C standard
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Thu, 2 May 2019 20:02:56 +0000 (22:02 +0200)]
Improve exporting project
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Wed, 1 May 2019 06:18:50 +0000 (08:18 +0200)]
Fix typo in comments, wrong name of file
* not functional change.
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Tue, 30 Apr 2019 21:57:57 +0000 (23:57 +0200)]
Fix typo, CMAKE_VERISON -> CMAKE_VERSION
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Sun, 12 May 2019 05:07:10 +0000 (22:07 -0700)]
Merge pull request #184 from mikkoi/fix-windows-build
Possible fix for the failing Windows build
Mikko Johannes Koivunalho [Sat, 11 May 2019 09:17:41 +0000 (11:17 +0200)]
fix the rest of the builds: vs and mingw32
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Mikko Johannes Koivunalho [Sun, 5 May 2019 13:20:55 +0000 (15:20 +0200)]
Possible fix
* https://github.com/libcheck/check/pull/182#issuecomment-
489425824
Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
Branden Archer [Wed, 23 Jan 2019 05:47:12 +0000 (21:47 -0800)]
Merge pull request #179 from evpobr/fix-cmake-package-config
Fix package config module for CMake >= 2.8.12
evpobr [Mon, 14 Jan 2019 09:24:47 +0000 (14:24 +0500)]
Fix package config module for CMake >= 2.8.12
Use target_include_directories() to add interface directories.
Now check target will add its include path to target it is linked to.
Branden Archer [Sat, 24 Nov 2018 06:05:29 +0000 (22:05 -0800)]
Merge pull request #175 from lhanson/patch-1
Fix typo
Lyle Hanson [Sat, 24 Nov 2018 04:01:22 +0000 (22:01 -0600)]
Fix typo
Change "failes" to "fails"
Branden Archer [Tue, 21 Aug 2018 12:53:50 +0000 (08:53 -0400)]
Merge pull request #170 from ozars/doxygen-devel-feature
Add development version of doxygen configuration
Omer Ozarslan [Fri, 17 Aug 2018 21:57:06 +0000 (16:57 -0500)]
Add development version of doxygen configuration
New target: doc/doxygen-devel
Create a new development version of doxygen configuration, which creates a more
verbose doxygen reference including functions and files not exposed to API and
their call graph. Call graphs require graphviz installed.
Branden Archer [Fri, 27 Jul 2018 20:19:30 +0000 (16:19 -0400)]
Merge pull request #168 from libcheck/update-webpage
Remove CloudBees button on webpage
Branden Archer [Fri, 27 Jul 2018 03:32:11 +0000 (23:32 -0400)]
Remove CloudBees button on webpage
The testing has migrated to Travis-CI.
Branden Archer [Tue, 17 Jul 2018 01:52:39 +0000 (21:52 -0400)]
Merge pull request #164 from ozars/readme-fix
Mention rebuilding linker cache in README
Omer Ozarslan [Mon, 16 Jul 2018 20:36:40 +0000 (15:36 -0500)]
Mention rebuilding linker cache in README (#155)
Branden Archer [Tue, 3 Jul 2018 23:10:28 +0000 (19:10 -0400)]
Merge pull request #162 from libcheck/travis
Build example on Travis-CI
Branden Archer [Mon, 2 Jul 2018 23:18:04 +0000 (19:18 -0400)]
Build example on Travis-CI
Branden Archer [Thu, 21 Jun 2018 01:43:33 +0000 (21:43 -0400)]
Merge pull request #160 from libcheck/todo
Update TODO
Branden Archer [Wed, 20 Jun 2018 21:19:10 +0000 (17:19 -0400)]
Update TODO
This TODO was addressed here:
https://github.com/libcheck/check/pull/158
3987c1d906ee68e0a6a5fd7888d88e0873f914d9
Branden Archer [Wed, 20 Jun 2018 21:16:42 +0000 (17:16 -0400)]
Merge pull request #158 from filbranden/ttest1
Fix START_TEST to look like valid C code.
Branden Archer [Wed, 20 Jun 2018 17:17:23 +0000 (13:17 -0400)]
Merge branch 'master' into ttest1
Branden Archer [Wed, 20 Jun 2018 17:15:56 +0000 (13:15 -0400)]
Merge pull request #159 from libcheck/travis
Add pre-release check to travis-ci
Branden Archer [Mon, 18 Jun 2018 17:59:47 +0000 (13:59 -0400)]
Move CloudBees tests to Travis-CI
Earlier this year GitHub deprecated some encryption types from
accessing repos. This broke the FC17 executors on CloudBees.
Trying to update to using the FC25 executors found that not
all tools were installed. CloudBees determined it would take
too much time to install the missing tools on FC25 which were
on FC17 (for a FOSS project), and declined to do so. As a result,
Check's tests no longer run on CloudBees.
In response, the tests which ran on CloudBees are being moved
to Travis-CI. This includes the pre release check, building the
documentation, building with scan-build, and building with some
of the configure arguments.
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.
Filipe Brandenburger [Tue, 12 Jun 2018 17:08:07 +0000 (10:08 -0700)]
Fix START_TEST to look like valid C code.
Instead of exporting the defined name as a bare function, export a
struct that has a pointer to the function, but also its name, file and
line number where it is defined.
Store that information into a new `struct TTest`.
After this commit, START_TEST(<testname>) will create three definitions:
- <testname>_fn: The actual function;
- <testname>_ttest: A `struct TTest` with the information about it;
- <testname>: A pointer to <testname>_ttest.
Functions `tcase_add_test()` and friends are updated to take a `TTest *`
argument rather than a `TFun` and separate name. The runners are updated
to find that information inside the linked `tc->ttest`. The call to
`tcase_fn_start()` is moved from the defined functions to the runners
(both the "fork" and the "nofork" one) which call it just before
invoking the test function.
A nice side-effect is that END_TEST is now optional, though the empty
`#define` is kept for backwards compability.
v2: Initialize the struct TTest by position to be compatible with older
compilers that do not recognize named fields (e.g. VS 2010, VS 2012.)
Tested:
- `make check` still passes.
- Removing END_TEST from test cases still produces valid code that
builds and passes tests.
Branden Archer [Fri, 12 Jan 2018 15:29:32 +0000 (10:29 -0500)]
Merge pull request #150 from ckdarby/patch-1
Add 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
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
James Prior [Sat, 25 Nov 2017 22:07:02 +0000 (17:07 -0500)]
Fix title of web/install.html.
Branden Archer [Sat, 25 Nov 2017 23:57:37 +0000 (18:57 -0500)]
Update various reference to Sourceforge
These should mention GitHub instead.
James Prior [Sat, 25 Nov 2017 21:37:05 +0000 (16:37 -0500)]
Update some links from sourceforge to github.
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
foviedoITBA [Thu, 16 Nov 2017 19:55:30 +0000 (16:55 -0300)]
Fixed typo in ck_assert_str_eq doc
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
Branden Archer [Mon, 23 Oct 2017 23:14:38 +0000 (19:14 -0400)]
Merge branch 'master' into news
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
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.
Branden Archer [Fri, 20 Oct 2017 20:32:08 +0000 (16:32 -0400)]
Restore development header in NEWS
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
Branden Archer [Fri, 20 Oct 2017 00:59:26 +0000 (20:59 -0400)]
Update for release v0.12.0
Branden Archer [Fri, 20 Oct 2017 00:59:00 +0000 (20:59 -0400)]
Correct typo in HACKING
Branden Archer [Thu, 19 Oct 2017 21:02:56 +0000 (17:02 -0400)]
Merge pull request #134 from libcheck/news
Update NEWS
Branden Archer [Thu, 19 Oct 2017 15:03:21 +0000 (11:03 -0400)]
Update NEWS
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
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.
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.
Branden Archer [Fri, 1 Sep 2017 11:09:42 +0000 (07:09 -0400)]
Merge branch 'master' into 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
bel2125 [Fri, 1 Sep 2017 08:47:03 +0000 (10:47 +0200)]
Set license statement
bel2125 [Thu, 31 Aug 2017 15:37:29 +0000 (17:37 +0200)]
Add fpclassify to Makefile.am and comment VS2008 build
bel2125 [Thu, 31 Aug 2017 07:58:54 +0000 (09:58 +0200)]
Add prototype for fpclassify
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.
bel2125 [Wed, 30 Aug 2017 21:07:06 +0000 (23:07 +0200)]
Try yet another command line for VS2008
bel2125 [Wed, 30 Aug 2017 19:32:14 +0000 (21:32 +0200)]
Try another command line for VS2008
bel2125 [Wed, 30 Aug 2017 19:22:14 +0000 (21:22 +0200)]
Clean up and document the appveyor.yml file
bel2125 [Wed, 30 Aug 2017 18:10:15 +0000 (20:10 +0200)]
appveyor.yml: replace exit in test step by additional environment variable
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
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.
bel2125 [Wed, 30 Aug 2017 14:04:21 +0000 (16:04 +0200)]
Some preprocessor magic for defining INFINITY and NAN
bel2125 [Wed, 30 Aug 2017 11:13:05 +0000 (13:13 +0200)]
Test additional AppVeyor builds
bel2125 [Tue, 29 Aug 2017 23:00:30 +0000 (01:00 +0200)]
Define INFINITY and NAN as macro
bel2125 [Tue, 29 Aug 2017 22:45:10 +0000 (00:45 +0200)]
Test additional AppVeyor builds
bel2125 [Tue, 29 Aug 2017 22:28:02 +0000 (00:28 +0200)]
Test additional AppVeyor builds
bel2125 [Tue, 29 Aug 2017 22:07:45 +0000 (00:07 +0200)]
Test additional AppVeyor builds
bel2125 [Tue, 29 Aug 2017 20:50:57 +0000 (22:50 +0200)]
Move infinity/not-a-number handling to lib directory