]> granicus.if.org Git - check/log
check
5 years agoMerge pull request #231 from nmeum/makeinfo master
Branden Archer [Sat, 26 Oct 2019 18:48:14 +0000 (11:48 -0700)]
Merge pull request #231 from nmeum/makeinfo

configure: check for makeinfo instead of tex for documentation

5 years agoconfigure: check for makeinfo instead of tex for documentation
Sören Tempel [Fri, 25 Oct 2019 15:35:48 +0000 (17:35 +0200)]
configure: check for makeinfo instead of tex for documentation

While upgrading the Alpine Linux check package to 0.13.0 I noticed that
documentation files were no longer installed, even though they were
installed successfully previously.

After investigating this for a while I noticed that this seems to be due
to an incorrect fix for #206. In #206 the issue reporter complains that
the build fails if texinfo is not installed, the fix in #212 checks for
tex instead of makeinfo though. makeinfo is the command used by the
implicit gnu make rule to generate info pages.

5 years agoMerge pull request #225 from mikkoi/fix-c-standard-to-c99
Branden Archer [Fri, 25 Oct 2019 06:37:00 +0000 (23:37 -0700)]
Merge pull request #225 from mikkoi/fix-c-standard-to-c99

Fix c standard to c99

5 years agoMerge branch 'master' into fix-c-standard-to-c99
Branden Archer [Fri, 25 Oct 2019 05:14:57 +0000 (22:14 -0700)]
Merge branch 'master' into fix-c-standard-to-c99

5 years agoMerge pull request #230 from libcheck/post-0.13
Branden Archer [Wed, 23 Oct 2019 14:47:49 +0000 (07:47 -0700)]
Merge pull request #230 from libcheck/post-0.13

Update after 0.13

5 years agoFix typo in NEWS
Branden Archer [Tue, 22 Oct 2019 05:09:17 +0000 (22:09 -0700)]
Fix typo in NEWS

5 years agoRestore development header in NEWS
Branden Archer [Tue, 22 Oct 2019 05:08:14 +0000 (22:08 -0700)]
Restore development header in NEWS

5 years agoUpdate index.html for 0.13.0 release
Branden Archer [Tue, 22 Oct 2019 05:06:56 +0000 (22:06 -0700)]
Update index.html for 0.13.0 release

5 years agoMerge pull request #224 from libcheck/pre-v0.13 0.13.0
Branden Archer [Mon, 21 Oct 2019 14:46:54 +0000 (07:46 -0700)]
Merge pull request #224 from libcheck/pre-v0.13

Update NEWS for v0.13

5 years agoChange C++ style comments to C style
Mikko Johannes Koivunalho [Sun, 20 Oct 2019 09:41:27 +0000 (11:41 +0200)]
Change C++ style comments to C style

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoAdd missing include for waitpid()
Mikko Johannes Koivunalho [Sun, 20 Oct 2019 09:46:33 +0000 (11:46 +0200)]
Add missing include for waitpid()

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoFix required C standard from C90 to C99
Mikko Johannes Koivunalho [Sun, 20 Oct 2019 09:26:04 +0000 (11:26 +0200)]
Fix required C standard from C90 to C99

We are using C99 features, such as anonymous variadic macros and
mixed declarations and code.

Besides, we are using POSIX extensions (fork, etc.), so there is
(probably?) no point in forcing the use of the old ANSI C89 / ISO C90.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoMerge branch 'master' into pre-v0.13
Branden Archer [Mon, 21 Oct 2019 03:06:04 +0000 (20:06 -0700)]
Merge branch 'master' into pre-v0.13

5 years agoUpdate hash and date for 0.13.0 release in NEWS
Branden Archer [Mon, 21 Oct 2019 03:05:43 +0000 (20:05 -0700)]
Update hash and date for 0.13.0 release in NEWS

5 years agoUpdate NEWS with additional changes
Branden Archer [Mon, 21 Oct 2019 03:04:38 +0000 (20:04 -0700)]
Update NEWS with additional changes

5 years agoMerge pull request #228 from mikkoi/fix-forced-build-type
Branden Archer [Mon, 21 Oct 2019 03:04:12 +0000 (20:04 -0700)]
Merge pull request #228 from mikkoi/fix-forced-build-type

Remove the forcing of the CMake build type

5 years agoMerge branch 'master' into fix-forced-build-type
Branden Archer [Sun, 20 Oct 2019 23:38:37 +0000 (16:38 -0700)]
Merge branch 'master' into fix-forced-build-type

5 years agoMerge pull request #227 from mikkoi/support-cmake-package-registry
Branden Archer [Sun, 20 Oct 2019 23:38:26 +0000 (16:38 -0700)]
Merge pull request #227 from mikkoi/support-cmake-package-registry

Support CMake package registry

5 years agoMerge branch 'master' into support-cmake-package-registry
Branden Archer [Sun, 20 Oct 2019 15:35:59 +0000 (08:35 -0700)]
Merge branch 'master' into support-cmake-package-registry

5 years agoMerge pull request #226 from mikkoi/fix-wrong-library-filename
Branden Archer [Sun, 20 Oct 2019 15:35:01 +0000 (08:35 -0700)]
Merge pull request #226 from mikkoi/fix-wrong-library-filename

Fix wrong library filename (in Windows)

5 years agoRemove the forcing of the CMake build type
Mikko Johannes Koivunalho [Sat, 19 Oct 2019 23:20:21 +0000 (01:20 +0200)]
Remove the forcing of the CMake build type

* Do not force the build type to be Debug.
* This actually didn't work because the variable was not declated CACHE.
* Append /cmake dir to CMAKE_MODULE_PATH instead of replacing the
  previous content.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoUpdate NEWS
Branden Archer [Sun, 20 Oct 2019 04:46:46 +0000 (21:46 -0700)]
Update NEWS

5 years agoAdd header check_stdint.h to public headers
Mikko Johannes Koivunalho [Sun, 20 Oct 2019 00:27:38 +0000 (02:27 +0200)]
Add header check_stdint.h to public headers

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoAdd support for CMake User Package Registry
Mikko Johannes Koivunalho [Sun, 20 Oct 2019 00:24:02 +0000 (02:24 +0200)]
Add support for CMake User Package Registry

The registries are especially useful to help projects find packages
in non-standard install locations or directly in their own build trees.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoCorrect wrong Win dynamic library name
Mikko Johannes Koivunalho [Sat, 19 Oct 2019 22:59:21 +0000 (00:59 +0200)]
Correct wrong Win dynamic library name

Change from checkStatic to checkDynamic.
Was erroneously "checkStatic".

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoAdd comments about library creation
Mikko Johannes Koivunalho [Sat, 19 Oct 2019 22:57:38 +0000 (00:57 +0200)]
Add comments about library creation

Why we create both static and shared type of library?

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoMerge pull request #221 from mikkoi/more-todo
Branden Archer [Mon, 16 Sep 2019 04:03:18 +0000 (21:03 -0700)]
Merge pull request #221 from mikkoi/more-todo

Add more items to TODO

5 years agoMerge branch 'master' into more-todo
Branden Archer [Sun, 15 Sep 2019 17:37:12 +0000 (10:37 -0700)]
Merge branch 'master' into more-todo

5 years agoMerge pull request #220 from mikkoi/so-for-visual-studio
Branden Archer [Sun, 15 Sep 2019 17:36:26 +0000 (10:36 -0700)]
Merge pull request #220 from mikkoi/so-for-visual-studio

Shared Library for Visual Studio

5 years agoAdd more items to TODO
Mikko Johannes Koivunalho [Sat, 14 Sep 2019 20:55:35 +0000 (22:55 +0200)]
Add more items to TODO

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoRemove unneeded include()
Mikko Johannes Koivunalho [Sat, 14 Sep 2019 19:16:50 +0000 (21:16 +0200)]
Remove unneeded include()

Already included in the project root CMakeLists.txt

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoAdd option ENABLE_MEMORY_LEAKING_TESTS
Mikko Johannes Koivunalho [Sat, 14 Sep 2019 19:06:12 +0000 (21:06 +0200)]
Add option ENABLE_MEMORY_LEAKING_TESTS

Removing the set(MEMORY_LEAKING_TESTS_ENABLED) which
had no effect on the build.

The new CMake build option uses verb-first structure
(do something on something: e.g. ENABLE/BUILD) like other build
options. The definition itself is "MEMORY_LEAKING_TESTS_ENABLED"
and only enabled in the tests/ subdirectory.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoCorrect indentation
Mikko Johannes Koivunalho [Sat, 14 Sep 2019 17:31:40 +0000 (19:31 +0200)]
Correct indentation

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoTruncate PROJECT_VERSION to three components
Mikko Johannes Koivunalho [Sat, 14 Sep 2019 16:59:53 +0000 (18:59 +0200)]
Truncate PROJECT_VERSION to three components

For compatibility with the Autotools build which only
uses three parts: major, minor and patch.

CMake allows four components in version numbering:
major, minor, patch and tweak.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoAdd variable VERSION to pkgconfig/check.pc configuration
Mikko Johannes Koivunalho [Sat, 14 Sep 2019 16:18:45 +0000 (18:18 +0200)]
Add variable VERSION to pkgconfig/check.pc configuration

File check.pc.in is shared with Autotools and CMake build.

File uses variable 'VERSION'.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoRemove the needless resetting of PROJECT_VERSION
Mikko Johannes Koivunalho [Sat, 14 Sep 2019 16:15:48 +0000 (18:15 +0200)]
Remove the needless resetting of PROJECT_VERSION

Variable PROJECT_VERSION was not yet in use when check_stdint.h configuration was updated.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoAdd target shared library to CMake build
Mikko Johannes Koivunalho [Sun, 23 Jun 2019 08:50:22 +0000 (10:50 +0200)]
Add target shared library to CMake build

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoAdd better explanation for '#define CK_DLL_EXP'
Mikko Johannes Koivunalho [Fri, 13 Sep 2019 20:31:04 +0000 (22:31 +0200)]
Add better explanation for '#define CK_DLL_EXP'

5 years agoRemove MSVC specific dllexport
Mikko Johannes Koivunalho [Fri, 13 Sep 2019 20:12:48 +0000 (22:12 +0200)]
Remove MSVC specific dllexport

Target check is specifically a static library

5 years agoChange definition CK_DLL_EXP from global to target specific
Mikko Johannes Koivunalho [Sun, 23 Jun 2019 14:50:51 +0000 (16:50 +0200)]
Change definition CK_DLL_EXP from global to target specific

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoAdd libcompat code directly to libcheck
Mikko Johannes Koivunalho [Sun, 8 Sep 2019 18:58:30 +0000 (20:58 +0200)]
Add libcompat code directly to libcheck

We have tried to statically link the built libcompat into built libcheck
in CMake without success. With autotools (libtool et.al.) this is
most likely very easy but there is no support on Windows.
So instead of building libcompat separately
we incorporate the necessary parts of libcompat code
directly into libcheck when building libcheck.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoStart using GNUInstallDirs in every CMake install()
Mikko Johannes Koivunalho [Sun, 8 Sep 2019 14:48:32 +0000 (16:48 +0200)]
Start using GNUInstallDirs in every CMake install()

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoMerge pull request #209 from mikkoi/fix-small-issues-2
Branden Archer [Mon, 9 Sep 2019 01:25:13 +0000 (18:25 -0700)]
Merge pull request #209 from mikkoi/fix-small-issues-2

Fix small issues 2

5 years agoMerge branch 'master' into fix-small-issues-2
Branden Archer [Sun, 8 Sep 2019 18:09:23 +0000 (11:09 -0700)]
Merge branch 'master' into fix-small-issues-2

5 years agoImprove check_stdint.h creation in CMake
Mikko Johannes Koivunalho [Sun, 8 Sep 2019 07:51:44 +0000 (09:51 +0200)]
Improve check_stdint.h creation in CMake

Will not convert m4/ax_create_stdint_h.m4 to CMake.
Make the resulting check_stdint.h similar to the old one
(as much as is possible).

GNU Autotools build is untouched. It continues to use m4 macro
and generates check_stdint.h from scratch.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoMerge pull request #212 from mikkoi/is-makeinfo-required
Branden Archer [Sun, 8 Sep 2019 16:56:20 +0000 (09:56 -0700)]
Merge pull request #212 from mikkoi/is-makeinfo-required

configure: optional build documentation

5 years agoAdd param @ONLY to CMake configure_file()
Mikko Johannes Koivunalho [Sun, 8 Sep 2019 09:54:31 +0000 (11:54 +0200)]
Add param @ONLY to CMake configure_file()

Restrict variable replacement to references of the form @VAR@.
This is useful for configuring scripts that also use ${VAR} syntax.
Adding @ONLY is precautionary action to prevent future bugs.

Attn. cmake/config.h.in contains ${VAR} in #cmakedefine clauses!

How to use CMake variable substitution.

Wrong:

    #if @HAVE_FORK@
        [..]
    #endif

Because this will result as:

    #if 1
        [..]
    #endif

Better:

    /* Imported CMake variables created during build. */
    #cmakedefine HAVE_FORK 1

    #ifdef HAVE_FORK
        [..]
    #endif

Because this will result as:

    /* Imported CMake variables created during build. */
    #define HAVE_FORK 1

    #ifdef HAVE_FORK
        [..]
    #endif

Or:

    /* Imported CMake variables created during build. */
    /* #undef HAVE_FORK */
    [..]

This is more readable. Now we know which decision actually
was taken.

If you need to pass the parameter to the definition,
it is just as easy:

    /* Imported CMake variables created during build. */
    #cmakedefine CORRECT_SIZE @CORRECT_SIZE@

    #if CORRECT_SIZE >= 20
        [..]
    #endif

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoRemove non-CMake style option CHECK_ENABLE_TESTS
Mikko Johannes Koivunalho [Mon, 2 Sep 2019 20:34:49 +0000 (22:34 +0200)]
Remove non-CMake style option CHECK_ENABLE_TESTS

It is a CMake best practice to include file 'CTest'
in the project main file and then use option
'BUILD_TESTING' (defined in 'CTest') to enable or disable
building the tests. BUILD_TESTING is ON by default.

https://cmake.org/cmake/help/v3.9/module/CTest.html?highlight=build_testing
https://cmake.org/cmake/help/v3.9/command/add_test.html?highlight=build_testing

Option CHECK_ENABLE_TESTS is deprecated.
Because it is on by default, deprecation warning is only shown
to user when user explicitly turns CHECK_ENABLE_TESTS off.

Suggesting to remove the option by release 0.15.0.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoFix missing macro undefinition
Mikko Johannes Koivunalho [Sun, 1 Sep 2019 18:44:42 +0000 (20:44 +0200)]
Fix missing macro undefinition

If we don't undefine the macro, it will enter the user's namespace.
This macro is only for our internal use.
Otherwise it would have the "CK_" prefix.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoAdd pkgconfig/check.pc file generation to CMake
Mikko Johannes Koivunalho [Mon, 2 Sep 2019 16:57:59 +0000 (18:57 +0200)]
Add pkgconfig/check.pc file generation to CMake

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoReindent CMake file to 2 chars indentation
Mikko Johannes Koivunalho [Fri, 2 Aug 2019 05:08:25 +0000 (07:08 +0200)]
Reindent CMake file to 2 chars indentation

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoAdd missing header file when HAVE_FORK
Mikko Johannes Koivunalho [Fri, 2 Aug 2019 04:15:19 +0000 (06:15 +0200)]
Add missing header file when HAVE_FORK

Function _exit(int) is included in unistd.h. Also fork() is here.
Functions exit(int) (C89) and _Exit(int) (C99) are in stdlib.h.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoAdd HAVE_UNISTD_H to CMake and config.h.in
Mikko Johannes Koivunalho [Sat, 8 Jun 2019 13:40:14 +0000 (15:40 +0200)]
Add HAVE_UNISTD_H  to CMake and config.h.in

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoAdd 'cmake --version' to Travis script
Mikko Johannes Koivunalho [Sun, 23 Jun 2019 05:10:09 +0000 (07:10 +0200)]
Add 'cmake --version' to Travis script

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoMerge branch 'master' into is-makeinfo-required
Branden Archer [Tue, 3 Sep 2019 00:06:13 +0000 (17:06 -0700)]
Merge branch 'master' into is-makeinfo-required

5 years agoMerge pull request #219 from mikkoi/fix-macro-definition
Branden Archer [Tue, 3 Sep 2019 00:05:58 +0000 (17:05 -0700)]
Merge pull request #219 from mikkoi/fix-macro-definition

Fix missing macro undefinition

5 years agoAdd alarm.c to the build
Mikko Johannes Koivunalho [Sat, 22 Jun 2019 16:49:37 +0000 (18:49 +0200)]
Add alarm.c to the build

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoRemove support for old CMake version
Mikko Johannes Koivunalho [Sat, 8 Jun 2019 20:00:53 +0000 (22:00 +0200)]
Remove support for old CMake version

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoAdd command 'cmake --version' to appveyor builds
Mikko Johannes Koivunalho [Sat, 8 Jun 2019 19:55:05 +0000 (21:55 +0200)]
Add command 'cmake --version' to appveyor builds

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoCreate variables PROJECT_VERSION_*
Mikko Johannes Koivunalho [Sun, 9 Jun 2019 18:35:06 +0000 (20:35 +0200)]
Create variables PROJECT_VERSION_*

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoAdd tags DESCRIPTION and LANGUAGES to project()
Mikko Johannes Koivunalho [Sat, 8 Jun 2019 19:47:59 +0000 (21:47 +0200)]
Add tags DESCRIPTION and LANGUAGES to project()

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoRaise minimum CMake version to 3.9
Mikko Johannes Koivunalho [Sat, 8 Jun 2019 19:45:40 +0000 (21:45 +0200)]
Raise minimum CMake version to 3.9

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoFix missing macro undefinition
Mikko Johannes Koivunalho [Sun, 1 Sep 2019 18:44:42 +0000 (20:44 +0200)]
Fix missing macro undefinition

If we don't undefine the macro, it will enter the user's namespace.
This macro is only for our internal use.
Otherwise it would have the "CK_" prefix.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoMerge branch 'master' into is-makeinfo-required
Branden Archer [Sun, 1 Sep 2019 01:43:15 +0000 (18:43 -0700)]
Merge branch 'master' into is-makeinfo-required

5 years agoMerge pull request #218 from mikkoi/improve-gcc-version-at-least
Branden Archer [Sun, 1 Sep 2019 01:42:11 +0000 (18:42 -0700)]
Merge pull request #218 from mikkoi/improve-gcc-version-at-least

Improve macro GCC_VERSION_AT_LEAST(major, minor)

5 years agoMerge branch 'master' into improve-gcc-version-at-least
Branden Archer [Sat, 31 Aug 2019 07:02:06 +0000 (00:02 -0700)]
Merge branch 'master' into improve-gcc-version-at-least

5 years agoMerge pull request #213 from mikkoi/fix-small-issues-3
Branden Archer [Sat, 31 Aug 2019 07:01:38 +0000 (00:01 -0700)]
Merge pull request #213 from mikkoi/fix-small-issues-3

Fix some issues that came up with Travis updating to Clang 7

5 years agoImprove macro GCC_VERSION_AT_LEAST(major, minor)
Mikko Johannes Koivunalho [Fri, 30 Aug 2019 13:56:23 +0000 (15:56 +0200)]
Improve macro GCC_VERSION_AT_LEAST(major, minor)

Use also the patch number. Arguments: major, minor, pathch.

Issue #214 https://github.com/libcheck/check/issues/214

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoAdd issue #206 to NEWS
Mikko Johannes Koivunalho [Tue, 20 Aug 2019 08:44:12 +0000 (10:44 +0200)]
Add issue #206 to NEWS

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

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoconfigure: optional build documentation, travis
Mikko Johannes Koivunalho [Thu, 29 Aug 2019 14:57:52 +0000 (16:57 +0200)]
configure: optional build documentation, travis

Tweak Travis build to support the new `./configure` switch.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoconfigure: optional build documentation, output
Mikko Johannes Koivunalho [Thu, 29 Aug 2019 14:52:52 +0000 (16:52 +0200)]
configure: optional build documentation, output

Add more output when running `./configure`.

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoconfigure: optional build documentation
Branden Archer [Mon, 19 Aug 2019 18:32:35 +0000 (20:32 +0200)]
configure: optional build documentation

Fix issue https://github.com/libcheck/check/issues/206

Applied an uncommitted patch by Branden Archer.
https://sourceforge.net/p/check/bugs/101/

Signed-off-by: Mikko Johannes Koivunalho <mikko.koivunalho@iki.fi>
5 years agoFix indentation
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>
5 years agoRemove useless if clause.
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>
5 years agoAdd more info to AUTHORS
Mikko Johannes Koivunalho [Wed, 28 Aug 2019 11:12:22 +0000 (13:12 +0200)]
Add more info to AUTHORS

5 years agoInitialize buffer to ensure it is empty
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>
5 years agoFix declaration of extern int errno
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>
5 years agoFix indentation
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>
5 years agoFix warnings by flag -Wswitch-default
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>
5 years agoMerge pull request #204 from mikkoi/add-checkmk-to-cmake
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

5 years agoMake checkmk installable
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>
5 years agoAdd issue #196 to NEWS
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>
5 years agoAdd Mikko Koivunalho to AUTHORS (contributor)
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>
5 years agoIncrease version to 0.13.0
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>
5 years agoMerge pull request #198 from mikkoi/fix-cmake-project-name
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

5 years agoFix 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>
5 years agoMerge pull request #189 from mikkoi/improve-test_mem_leaks
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

5 years agoMerge branch 'master' into improve-test_mem_leaks
Branden Archer [Tue, 4 Jun 2019 00:01:11 +0000 (17:01 -0700)]
Merge branch 'master' into improve-test_mem_leaks

5 years agoMerge pull request #193 from mikkoi/fix-todo-indentation
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

5 years agoFix script to work from any path and to take argument
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>
5 years agoMerge branch 'master' into fix-todo-indentation
Branden Archer [Mon, 3 Jun 2019 04:00:52 +0000 (21:00 -0700)]
Merge branch 'master' into fix-todo-indentation

5 years agoMerge pull request #191 from mikkoi/fix-signed-comparison
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

5 years agoMerge branch 'master' into fix-signed-comparison
Branden Archer [Mon, 3 Jun 2019 00:34:17 +0000 (17:34 -0700)]
Merge branch 'master' into fix-signed-comparison

5 years agoMerge pull request #190 from mikkoi/fix-abbreviations
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

5 years agoMerge branch 'master' into fix-abbreviations
Branden Archer [Sun, 2 Jun 2019 22:07:50 +0000 (15:07 -0700)]
Merge branch 'master' into fix-abbreviations

5 years agoMerge pull request #192 from mikkoi/fix-function-definition
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)"

5 years agoMerge branch 'master' into fix-function-definition
Branden Archer [Sun, 2 Jun 2019 17:27:36 +0000 (10:27 -0700)]
Merge branch 'master' into fix-function-definition

5 years agoMerge pull request #185 from mikkoi/improve-import
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

5 years agoRealign TODO indentations
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>
5 years agoFix int main() function to "int main(void)"
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 ()
     ^~~~