]> granicus.if.org Git - check/log
check
8 years agoMerge pull request #82 from libcheck/doc-update
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

8 years agoChange 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

8 years agoMerge pull request #87 from 9fcc/ptr_null
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

8 years agoAdd documentation for ck_assert_ptr_null and ck_assert_ptr_nonnull 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

8 years agoAdd tests 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

8 years agoAdd ck_assert_ptr_null and ck_assert_ptr_nonnull macros to compare against NULL
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

8 years agoMerge pull request #85 from libcheck/news-update
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

8 years agoMerge branch 'master' into news-update
Branden Archer [Tue, 13 Dec 2016 02:52:08 +0000 (21:52 -0500)]
Merge branch 'master' into news-update

8 years agoMerge pull request #84 from libcheck/since-0.10.1-fix
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

8 years agoAdd missing items to NEWS
Branden Archer [Tue, 13 Dec 2016 01:54:44 +0000 (20:54 -0500)]
Add missing items to NEWS

8 years agoUpdate @since tags that say 0.10.1
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

8 years agoMerge pull request #80 from 9fcc/pstr_comparisons
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

8 years agoAdd documentation for ck_assert_pstr_* macros
Dotsenko Andrey [Sat, 10 Dec 2016 19:32:58 +0000 (22:32 +0300)]
Add documentation for ck_assert_pstr_* macros

8 years agoAdd tests 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

8 years agoAdd ck_assert_pstr_* macros with ability to compare undefined (NULL) strings
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

8 years agoMerge pull request #79 from 9fcc/str_null
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

8 years agoAdd restrictions about NULL passed to ck_assert_str_* macros
Dotsenko Andrey [Sat, 3 Dec 2016 19:04:34 +0000 (22:04 +0300)]
Add restrictions about NULL passed to ck_assert_str_* macros

8 years agoAdd tests for ck_assert_str_* with NULL passed
Dotsenko Andrey [Sat, 3 Dec 2016 17:21:06 +0000 (20:21 +0300)]
Add tests for ck_assert_str_* with NULL passed

8 years agock_assert_str_*: fix segmentation fault while comparing with NULL
Dotsenko Andrey [Sat, 3 Dec 2016 17:20:53 +0000 (20:20 +0300)]
ck_assert_str_*: fix segmentation fault while comparing with NULL

8 years agoMerge pull request #69 from 9fcc/master
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_*)

8 years agoMerge branch 'master' into master
Branden Archer [Fri, 9 Dec 2016 20:10:21 +0000 (15:10 -0500)]
Merge branch 'master' into master

8 years agoMerge pull request #71 from 9fcc/ctest_debug
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

8 years agoUpdate AUTHORS
Dotsenko Andrey [Mon, 21 Nov 2016 05:01:22 +0000 (08:01 +0300)]
Update AUTHORS

8 years agoChange style of 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.

8 years agoAdd documentation for comparison of floating point numbers (ck_assert_floating_*)
Dotsenko Andrey [Tue, 8 Nov 2016 20:59:31 +0000 (23:59 +0300)]
Add documentation for comparison of floating point numbers (ck_assert_floating_*)

8 years agoAdd unit tests for comparison macros for 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_*)

8 years agoAdd 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_*)

8 years agoMerge branch 'master' into ctest_debug
Branden Archer [Tue, 8 Nov 2016 01:51:52 +0000 (20:51 -0500)]
Merge branch 'master' into ctest_debug

8 years agoMerge pull request #73 from brarcher/vs-ctest
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

8 years agoAllow tests to be checked with Valgrind via ctest
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".

8 years agoUse ctest on VC builds to run unit tests
Branden Archer [Mon, 7 Nov 2016 01:32:26 +0000 (20:32 -0500)]
Use ctest on VC builds to run unit tests

msbuild was running the unit tests, but if a failure was hit
the output of the unit tests was not printed. As a result,
there was no indication as to what actually failed in a given
unit test program. Using ctest (part of CMake) should
output the unit test program's output for better failure
diagnosis.

8 years agoMerge pull request #70 from brarcher/debugging-check-tests
Branden Archer [Sun, 6 Nov 2016 18:59:56 +0000 (13:59 -0500)]
Merge pull request #70 from brarcher/debugging-check-tests

Debugging check tests

8 years agoBetter error reporting for check_check_sub failures
Branden Archer [Sat, 5 Nov 2016 04:27:58 +0000 (00:27 -0400)]
Better error reporting for check_check_sub failures

If a unit test covered in check_check_sub fails report
the specific test case and test name, as to better identify
which test is failing and under what environment.

8 years agoList test names in the master_tests table
Branden Archer [Sun, 6 Nov 2016 14:01:40 +0000 (09:01 -0500)]
List test names in the master_tests table

Sometimes it is tricky to track down a unit test failure
as it is difficult to see which test actually failed.
To help make this easier all unit tests in the master_tests
table will now have the test name recorded. This will be
verified at unit test time as well, to ensure the test name
is accurate.

8 years agoAdd call for retrieving test name
Branden Archer [Sat, 5 Nov 2016 04:14:52 +0000 (00:14 -0400)]
Add call for retrieving test name

This will be used internally to determine the current running test
and recording it during the check_check_sub tests in order to make
unit test failure debugging easier. The call may also be useful
for users of Check.

8 years agoMerge pull request #68 from prusnak/patch-1
Branden Archer [Sun, 6 Nov 2016 15:33:18 +0000 (10:33 -0500)]
Merge pull request #68 from prusnak/patch-1

Update AUTHORS

8 years agoUpdate AUTHORS
Pavol Rusnak [Sat, 5 Nov 2016 11:11:18 +0000 (12:11 +0100)]
Update AUTHORS

8 years agoMerge pull request #67 from libcheck/travis-ci-osx-cmake-exclude
Branden Archer [Sat, 5 Nov 2016 04:28:29 +0000 (00:28 -0400)]
Merge pull request #67 from libcheck/travis-ci-osx-cmake-exclude

Skip OSX/CMake test combo until failures fixed

8 years agoMerge branch 'master' into travis-ci-osx-cmake-exclude
Branden Archer [Sat, 5 Nov 2016 01:38:24 +0000 (21:38 -0400)]
Merge branch 'master' into travis-ci-osx-cmake-exclude

8 years agoMerge pull request #65 from centricular/hurd-clock-gettime
Branden Archer [Sat, 5 Nov 2016 01:38:09 +0000 (21:38 -0400)]
Merge pull request #65 from centricular/hurd-clock-gettime

clock_gettime.c: Use __APPLE__ instead of __MACH__

8 years agoSkip OSX/CMake test combo until failures fixed
Branden Archer [Sat, 5 Nov 2016 00:41:17 +0000 (20:41 -0400)]
Skip OSX/CMake test combo until failures fixed

There have been sporadic unit test failures with timeout tests on OSX using CMake.
Until these are resolved, skipping these tests.

8 years agoMerge branch 'master' into hurd-clock-gettime
Nirbheek Chauhan [Fri, 4 Nov 2016 02:32:16 +0000 (08:02 +0530)]
Merge branch 'master' into hurd-clock-gettime

8 years agoMerge pull request #64 from prusnak/ck_assert_mem
Branden Archer [Thu, 3 Nov 2016 15:24:53 +0000 (11:24 -0400)]
Merge pull request #64 from prusnak/ck_assert_mem

Add memory location comparison macros (ck_assert_mem_*)

8 years agoclock_gettime.c: Use __APPLE__ instead of __MACH__
Nirbheek Chauhan [Wed, 2 Nov 2016 08:37:20 +0000 (14:07 +0530)]
clock_gettime.c: Use __APPLE__ instead of __MACH__

Hurd also defines __MACH__, but it does not have mach_absolute_time. Use
the more strict __APPLE__ instead.

8 years agoAdd documentation for memory location comparison macros
Pavol Rusnak [Tue, 1 Nov 2016 12:07:00 +0000 (13:07 +0100)]
Add documentation for memory location comparison macros

8 years agoAdd unit tests for memory location comparison macros (ck_assert_mem_*)
Pavol Rusnak [Wed, 26 Oct 2016 13:23:14 +0000 (15:23 +0200)]
Add unit tests for memory location comparison macros (ck_assert_mem_*)

8 years agoAdd memory location comparison macros (ck_assert_mem_*)
Pavol Rusnak [Wed, 19 Oct 2016 18:54:32 +0000 (20:54 +0200)]
Add memory location comparison macros (ck_assert_mem_*)

8 years agoMerge pull request #44 from cdentyou/tcase_tags
Branden Archer [Tue, 12 Jul 2016 15:45:51 +0000 (11:45 -0400)]
Merge pull request #44 from cdentyou/tcase_tags

RFC: Support arbitrary tagging and selection of testcases.

8 years agoSupport arbitrary tagging and selection of testcases.
Crispin Dent-Young [Wed, 29 Jun 2016 08:49:38 +0000 (09:49 +0100)]
Support arbitrary tagging and selection of testcases.

A testcase can optionally have a list of tags associated with it.
Srunner can be run with an optional include list of tags and an optional
exclude list of tags. These will have the effect of filtering testcases
that would otherwise be run.

8 years agoReduce Timeout Double Scaling Tests scale to avoid UT failures
Crispin Dent-Young [Thu, 23 Jun 2016 16:04:15 +0000 (17:04 +0100)]
Reduce Timeout Double Scaling Tests scale to avoid UT failures

The test "test_sleep2_fail" is occasionally passing (failing to fail)
in the jenkins UT - perhaps 1.6 seconds doesn't give enough leeway ?
Making it 1.5 seconds so its in exactly in the middle of sleep1_pass
and sleep2_fail.

8 years agoMerge pull request #55 from RyDroid/gitignore-adds
Branden Archer [Thu, 7 Jul 2016 00:34:09 +0000 (20:34 -0400)]
Merge pull request #55 from RyDroid/gitignore-adds

Very minor additions to .gitignore

8 years agoMerge pull request #57 from RyDroid/travis-license
Branden Archer [Thu, 7 Jul 2016 00:29:44 +0000 (20:29 -0400)]
Merge pull request #57 from RyDroid/travis-license

Adding the license header to the file for Travis CI

8 years agoAdding the license header to the file for Travis CI
Nicola Spanti (RyDroid) [Mon, 4 Jul 2016 21:00:30 +0000 (18:00 -0300)]
Adding the license header to the file for Travis CI

8 years agoVery minor additions to .gitignore
Nicola Spanti (RyDroid) [Fri, 1 Jul 2016 22:10:03 +0000 (19:10 -0300)]
Very minor additions to .gitignore

8 years agoMerge pull request #54 from brarcher/mem-leak-segv
Branden Archer [Wed, 29 Jun 2016 12:09:14 +0000 (08:09 -0400)]
Merge pull request #54 from brarcher/mem-leak-segv

Do not report failure line numbers if file not setup

8 years agoDo not report failure line numbers if file not setup
Branden Archer [Wed, 29 Jun 2016 02:12:23 +0000 (22:12 -0400)]
Do not report failure line numbers if file not setup

When running the master suite failure line numbers are written to
a file. Usually this is fine. However, the check_mem_leak.c test
re-uses the same tests. As a result, every time a failure is hit
a SEGV occurs because the file is never setup.

The memory leak test does not check against the line numbers,
so omitting these are fine. This fix prevents lots of SEGV
failures when running check_mem_leak.c under valgrind.

8 years agoMerge pull request #53 from brarcher/dup-tcase-ignore
Branden Archer [Sun, 19 Jun 2016 23:02:20 +0000 (19:02 -0400)]
Merge pull request #53 from brarcher/dup-tcase-ignore

Dup tcase ignore

8 years agoDisallow a test case from being added to a suite twice
Branden Archer [Sun, 19 Jun 2016 20:52:26 +0000 (16:52 -0400)]
Disallow a test case from being added to a suite twice

It was possible to add a test case to a suite more than
once. When the suite is freed later on the test case is
freed twice, causing a double free error.

Although is likely a bug from the test writer, this change
allows check to disallow double additions to prevent
double freeing a test case.

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

8 years agoRemove double addition of test suite
Branden Archer [Sun, 19 Jun 2016 20:49:20 +0000 (16:49 -0400)]
Remove double addition of test suite

The original purpose of adding the default timeout tests twice
does not seem to be relevant anymore; the timeout tests have been
split into several different types, each using either the
tcase_set_timeout or an environment variable. The tc_timeout_default
suite never has anything but the default timeout set, so the
spirit of why it was originally added no longer applies.
In addition, if the suite were formally torn down it would cause
a double free error.

8 years agoAdd call to check if list contains an item
Branden Archer [Sun, 19 Jun 2016 02:37:31 +0000 (22:37 -0400)]
Add call to check if list contains an item

8 years agoMerge pull request #47 from RyDroid/gitignore
Branden Archer [Tue, 7 Jun 2016 18:57:10 +0000 (11:57 -0700)]
Merge pull request #47 from RyDroid/gitignore

Improving .gitignore

8 years agoImproving .gitignore
Nicola Spanti (RyDroid) [Mon, 6 Jun 2016 01:15:31 +0000 (22:15 -0300)]
Improving .gitignore

8 years agoMerge pull request #45 from RyDroid/editorconfig
Branden Archer [Tue, 7 Jun 2016 01:03:07 +0000 (18:03 -0700)]
Merge pull request #45 from RyDroid/editorconfig

Adding an EditorConfig file

8 years agoAdding an EditorConfig file
Nicola Spanti (RyDroid) [Mon, 6 Jun 2016 01:08:47 +0000 (22:08 -0300)]
Adding an EditorConfig file

8 years agoMerge pull request #46 from RyDroid/readme
Branden Archer [Mon, 6 Jun 2016 03:10:05 +0000 (23:10 -0400)]
Merge pull request #46 from RyDroid/readme

Improving README

8 years agoImproving README
Nicola Spanti (RyDroid) [Mon, 6 Jun 2016 01:16:21 +0000 (22:16 -0300)]
Improving README

8 years agoMerge pull request #43 from libcheck/percent-n-check
Branden Archer [Wed, 1 Jun 2016 01:08:41 +0000 (21:08 -0400)]
Merge pull request #43 from libcheck/percent-n-check

Add test case where %n is passed into a ck_assert call

8 years agoAdd test case where %n is passed into a ck_assert call
Branden Archer [Thu, 26 May 2016 03:15:17 +0000 (23:15 -0400)]
Add test case where %n is passed into a ck_assert call

In the past it was possible to cause issues if arguments
were passed into ck_assert* macros which included %n.
Exist unit tests check for output format options, such as
%d and %f. No test existed for %n, which writes a value to
memory if used.

Ulrich Eckhardt observed that passing something with a %n in it
would result in issues running Check 0.9.10. Although the
issue is already resolved, this commit adds the test case mentioned in
Ulrich's GitHub issue: https://github.com/libcheck/check/issues/41

8 years agoMerge pull request #39 from libcheck/appveyor-unit-test-output
Branden Archer [Sun, 24 Apr 2016 14:03:35 +0000 (10:03 -0400)]
Merge pull request #39 from libcheck/appveyor-unit-test-output

Output unit test failures for MSVC on AppVeyor

8 years agoOutput unit test failures for MSVC on AppVeyor
Branden Archer [Sun, 24 Apr 2016 02:39:59 +0000 (22:39 -0400)]
Output unit test failures for MSVC on AppVeyor

8 years agoMerge pull request #37 from libcheck/rm-ac_config_aux_dir-example
Branden Archer [Wed, 20 Apr 2016 14:34:01 +0000 (10:34 -0400)]
Merge pull request #37 from libcheck/rm-ac_config_aux_dir-example

remove AC_CONFIG_AUX_DIR in example

8 years agoremove AC_CONFIG_AUX_DIR in example
Branden Archer [Wed, 20 Apr 2016 13:28:25 +0000 (09:28 -0400)]
remove AC_CONFIG_AUX_DIR in example

Potentially due to changes in automake and autoreconf

  https://www.gnu.org/software/automake/manual/html_node/Error-required-file-ltmain_002esh-not-found.html

the ltmain.sh script, generated by libtoolize, does not seem to honor the AC_CONFIG_AUX_DIR parameter. As a
result, the configure script will fail. To work around this, remove the AC_CONFIG_AUX_DIR option
to place all generated scripts into the current directory.

8 years agoMerge pull request #36 from Earnestly/master
Branden Archer [Wed, 20 Apr 2016 13:23:34 +0000 (09:23 -0400)]
Merge pull request #36 from Earnestly/master

Remove AC_CONFIG_AUX_DIR

8 years agoRemove AC_CONFIG_AUX_DIR
Earnestly [Tue, 19 Apr 2016 18:43:44 +0000 (19:43 +0100)]
Remove AC_CONFIG_AUX_DIR

This is half an issue report and half a pull request.

The reason for this is that while autoreconf -fi works for most of the
needed scripts it doesn't copy ltmain.sh into build-aux which results
the following ./configure failure:

    configure.ac:137: error: required file 'build-aux/ltmain.sh' not found

This patch, which is a similar one I've provided to cloog[0] which
allows ./configure to at least complete.

I'm not sure what you think since obviously the directory was used for
some reason, likely to reduce top-level directory clutter, but this at
least works for me.

0 https://groups.google.com/forum/?hl=en#!topic/cloog-development/28_M3Qk87-Q

Signed-off-by: Earnestly <zibeon@gmail.com>
8 years agoMerge pull request #35 from jd-boyd/readme_md
Branden Archer [Wed, 6 Apr 2016 12:39:10 +0000 (08:39 -0400)]
Merge pull request #35 from jd-boyd/readme_md

Convert README to README.md.

8 years agoAdjust README.md to be found out of tree.
Joshua D. Boyd [Wed, 6 Apr 2016 04:49:44 +0000 (00:49 -0400)]
Adjust README.md to be found out of tree.

8 years agoConvert README to README.md.
Joshua D. Boyd [Thu, 31 Mar 2016 03:48:06 +0000 (23:48 -0400)]
Convert README to README.md.

Now README is generated from README.md for packaging purposes.

Also add travis and appveyor status icons.

This addresses issue #32.

8 years agoMerge pull request #27 from jd-boyd/test_cmake
Branden Archer [Wed, 30 Mar 2016 11:58:56 +0000 (07:58 -0400)]
Merge pull request #27 from jd-boyd/test_cmake

Change travis config to test both cmake and autoconf

8 years agoAdd check_check_export to CMake test list.
Joshua D. Boyd [Wed, 30 Mar 2016 07:34:33 +0000 (03:34 -0400)]
Add check_check_export to CMake test list.

8 years agoFix running tests from cmake out of tree.
Joshua D. Boyd [Wed, 30 Mar 2016 07:13:11 +0000 (03:13 -0400)]
Fix running tests from cmake out of tree.

test_vars was being built in tree, and while the test programs were built out of tree, the CMakeLists.txt led to trying to run them in tree.

8 years agoIn travis, use make test for cmake builds.
Joshua D. Boyd [Sun, 27 Mar 2016 04:58:25 +0000 (00:58 -0400)]
In travis, use make test for cmake builds.

Keep make check in autoconf builds.

8 years agoChange travis config to test both cmake and autoconf
Joshua D. Boyd [Wed, 23 Mar 2016 06:26:52 +0000 (02:26 -0400)]
Change travis config to test both cmake and autoconf

Add Joshua Boyd to AUTHORS file.

8 years agoMerge pull request #31 from libcheck/appveyor-msvc
Branden Archer [Mon, 28 Mar 2016 14:14:37 +0000 (10:14 -0400)]
Merge pull request #31 from libcheck/appveyor-msvc

Enable AppVeyor to build for MSVC

8 years agoautotools: Do not attempt to check for (v)asprintf
Branden Archer [Mon, 28 Mar 2016 11:59:41 +0000 (07:59 -0400)]
autotools: Do not attempt to check for (v)asprintf

These functions are not used in Check

8 years agoBuild MSVC with AppVeyor
Branden Archer [Mon, 28 Mar 2016 11:58:58 +0000 (07:58 -0400)]
Build MSVC with AppVeyor

8 years agoremove (v)asprintf from snprintf.c
Branden Archer [Mon, 28 Mar 2016 11:50:33 +0000 (07:50 -0400)]
remove (v)asprintf from snprintf.c

these functions were never used, and their existence was
causing some difficulty for CMake and at least the MSVC
compiler for Windows.

8 years agoMerge pull request #30 from libcheck/appveyor-ci
Branden Archer [Mon, 28 Mar 2016 11:39:55 +0000 (07:39 -0400)]
Merge pull request #30 from libcheck/appveyor-ci

Create appveyor.yml

8 years agoCreate appveyor.yml
Branden Archer [Mon, 28 Mar 2016 03:05:58 +0000 (23:05 -0400)]
Create appveyor.yml

8 years agoMerge pull request #29 from jd-boyd/osx_cmake_itimerspec
Branden Archer [Thu, 24 Mar 2016 12:46:39 +0000 (08:46 -0400)]
Merge pull request #29 from jd-boyd/osx_cmake_itimerspec

Detect missing itimerspec on OSX.

8 years agoDetect missing itimerspec on OSX.
Joshua Boyd [Wed, 23 Mar 2016 21:54:41 +0000 (17:54 -0400)]
Detect missing itimerspec on OSX.

Set define to compiler accordingly.

This fixes cmake on osx support.

8 years agoMerge pull request #25 from jd-boyd/use_have_mkstemp
Branden Archer [Wed, 23 Mar 2016 12:30:21 +0000 (08:30 -0400)]
Merge pull request #25 from jd-boyd/use_have_mkstemp

In cmake build, use mkstemp when present

8 years agoRemove trailing whitespace from CMakeLists.txt.
Joshua D. Boyd [Wed, 23 Mar 2016 02:59:21 +0000 (22:59 -0400)]
Remove trailing whitespace from CMakeLists.txt.

8 years agoIn cmake build, use mkstemp when present
Joshua D. Boyd [Tue, 22 Mar 2016 04:50:34 +0000 (00:50 -0400)]
In cmake build, use mkstemp when present

This fixes this error, seen when building with cmake:

    check/src/check_msg.c:247: warning: the use of 'tempnam' is dangerous, better use `mkstemp'

CMakeLists.txt checks for mkstemp being present and sents a cmake
variable HAVE_MKSTEMP.  The check_msg.c file will use mkstemp if
HAVE_MKSTEMP is true, but the cmake variable wasn't causing HAVE_MKSTEMP
to be defined for the C compiler.

8 years agoMerge pull request #24 from blueness/posix-strsignal
Branden Archer [Tue, 22 Mar 2016 22:09:15 +0000 (18:09 -0400)]
Merge pull request #24 from blueness/posix-strsignal

Fix a type in configure.ac and conform to POSIX strsignal

8 years agoAUTHORS: list Anthony G. Basile as a contributor
Anthony G. Basile [Tue, 22 Mar 2016 07:12:11 +0000 (03:12 -0400)]
AUTHORS: list Anthony G. Basile as a contributor

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
8 years agolib/strsignal.c: strsignal() should be not be declared const
Anthony G. Basile [Mon, 21 Mar 2016 12:53:31 +0000 (08:53 -0400)]
lib/strsignal.c: strsignal() should be not be declared const

POSIX requires strsignal() to return a pointer to a char, not a pointer
to a const char. [1]  On uClibc, and possibly other libcs, this causes
problems with the correct declaration in string.h.

[1] man 3 strsignal

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
8 years agoconfigure.ac: fix typo
Anthony G. Basile [Mon, 21 Mar 2016 12:41:25 +0000 (08:41 -0400)]
configure.ac: fix typo

AC_CHECK_DECLS requires commas between declaration.  The missing comma
leads to HAVE_DECL_GETLINE_GETTIMEOFDAY which is non-sensical.

Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
8 years agoMerge pull request #23 from libcheck/authors
Branden Archer [Mon, 7 Mar 2016 20:22:43 +0000 (15:22 -0500)]
Merge pull request #23 from libcheck/authors

Update AUTHORS to mention updating via pull request

8 years agoUpdate AUTHORS to mention updating via pull request
Branden Archer [Mon, 7 Mar 2016 18:17:15 +0000 (13:17 -0500)]
Update AUTHORS to mention updating via pull request

8 years agoMerge pull request #22 from jnpkrn/AUTHORS-update
Branden Archer [Mon, 7 Mar 2016 18:15:21 +0000 (13:15 -0500)]
Merge pull request #22 from jnpkrn/AUTHORS-update

AUTHORS: list Jan Pokorny as a contributor