]> granicus.if.org Git - check/log
check
8 years agoMerge pull request #17 from libcheck/travis-ci
Branden Archer [Sat, 6 Feb 2016 16:52:32 +0000 (11:52 -0500)]
Merge pull request #17 from libcheck/travis-ci

Create .travis.yml for travis-ci builds

8 years agoAdd texinfo package to builder on travis-ci
Branden Archer [Sat, 6 Feb 2016 07:03:19 +0000 (02:03 -0500)]
Add texinfo package to builder on travis-ci

texinfo is necessary for building documentation

8 years agoCreate .travis.yml for travis-ci builds
Branden Archer [Sat, 6 Feb 2016 06:55:57 +0000 (01:55 -0500)]
Create .travis.yml for travis-ci builds

8 years agoMerge pull request #16 from ExcaliburZero/arch-install
Branden Archer [Sun, 10 Jan 2016 22:18:38 +0000 (17:18 -0500)]
Merge pull request #16 from ExcaliburZero/arch-install

web: add Arch Linux installation information

8 years agoweb: add Arch Linux installation information
ExcaliburZero [Fri, 8 Jan 2016 22:43:39 +0000 (17:43 -0500)]
web: add Arch Linux installation information

Add information to the installation webpage on how to install the program in Arch Linux using Pacman.

Also fix a small grammar error in the Fedora installation section.

8 years agoMerge pull request #14 from libcheck/hacking-build-pull-requests
brarcher [Wed, 30 Dec 2015 02:44:39 +0000 (21:44 -0500)]
Merge pull request #14 from libcheck/hacking-build-pull-requests

Update HACKING on building pull requests

8 years agoMerge branch 'master' into hacking-build-pull-requests
brarcher [Tue, 29 Dec 2015 21:20:49 +0000 (16:20 -0500)]
Merge branch 'master' into hacking-build-pull-requests

8 years agoMerge pull request #13 from gsauthof/posix-printf
brarcher [Tue, 29 Dec 2015 21:20:37 +0000 (16:20 -0500)]
Merge pull request #13 from gsauthof/posix-printf

Use only POSIX conforming features of printf

8 years agoUpdate HACKING on building pull requests
brarcher [Tue, 29 Dec 2015 17:52:20 +0000 (12:52 -0500)]
Update HACKING on building pull requests

8 years agoUse only POSIX conforming features of printf
Georg Sauthoff [Tue, 29 Dec 2015 17:10:52 +0000 (18:10 +0100)]
Use only POSIX conforming features of printf

This fixes 3 test failures on Solaris 10.

POSIX standardized printf, but the hex style \xHH sequences
aren't included in the standard. POSIX printf does understand
octal style \NNN sequences, though.

This should also work with shells where printf is a builtin (e.g.
on Lubuntu which probably uses dash).

Tested with xpg4-sh on Solaris 10 and bash/zsh/dash on Linux.

8 years agoReplace /bin/sh with env sh in the bang line.
Georg Sauthoff [Tue, 29 Dec 2015 17:07:21 +0000 (18:07 +0100)]
Replace /bin/sh with env sh in the bang line.

The bang line is changed since /bin/sh isn't POSIX
conforming on Solaris 10.

And according to POSIX /bin/sh does not even have to be
POSIX conforming. Thus, it is more portable to rewrite
the bang line using env.

9 years agoMerge pull request #12 from brarcher/printf-fix
brarcher [Sun, 27 Dec 2015 01:14:50 +0000 (20:14 -0500)]
Merge pull request #12 from brarcher/printf-fix

use printf binary directly when forming expected test output

9 years agouse printf binary directly when forming expected test output
Branden Archer [Sat, 26 Dec 2015 16:51:45 +0000 (11:51 -0500)]
use printf binary directly when forming expected test output

It was observed on Lubuntu that the sh built-in print does not
escape hex as expected. For example, the following is expected:

$ printf "hi\x9there\n"
hi there
$

However, on Lubuntu the built-in printf command in sh produces the
following:

$ sh -c 'printf "hi\x9there\n'
hi\x9there
$

To avoid this, use the printf binary, which env will find and
invoke.

9 years agoMerge pull request #11 from brarcher/master
brarcher [Sat, 26 Dec 2015 14:07:12 +0000 (09:07 -0500)]
Merge pull request #11 from brarcher/master

add gcov information to HACKING

9 years agoadd gcov information to HACKING
Branden Archer [Sat, 26 Dec 2015 05:57:32 +0000 (00:57 -0500)]
add gcov information to HACKING

9 years agoMerge pull request #8 from brarcher/master
brarcher [Fri, 25 Dec 2015 04:57:43 +0000 (23:57 -0500)]
Merge pull request #8 from brarcher/master

More cleanup of SourceForge or SVN stuff

9 years agoRemove references to SourceForge release process
Branden Archer [Fri, 25 Dec 2015 03:37:05 +0000 (22:37 -0500)]
Remove references to SourceForge release process

This is no longer relevant for GitHub

9 years agoRemove reference to SVNChangeLog and ChangeLogOld
Branden Archer [Fri, 25 Dec 2015 03:35:33 +0000 (22:35 -0500)]
Remove reference to SVNChangeLog and ChangeLogOld

These files are no longer needed

9 years agoMerge pull request #7 from brarcher/master
brarcher [Fri, 25 Dec 2015 00:52:02 +0000 (19:52 -0500)]
Merge pull request #7 from brarcher/master

Add information about updating generated documentation for website

9 years agoAdd information about updating generated documentation for website
Branden Archer [Thu, 24 Dec 2015 23:46:14 +0000 (18:46 -0500)]
Add information about updating generated documentation for website

9 years agoMerge pull request #5 from brarcher/master
brarcher [Thu, 24 Dec 2015 21:57:58 +0000 (16:57 -0500)]
Merge pull request #5 from brarcher/master

Update HACKING with information about GitHub

9 years agoAdd information on building of pull requests to HACKING
Branden Archer [Thu, 24 Dec 2015 20:19:45 +0000 (15:19 -0500)]
Add information on building of pull requests to HACKING

9 years agoUpdate release process for GitHub
Branden Archer [Thu, 24 Dec 2015 20:19:28 +0000 (15:19 -0500)]
Update release process for GitHub

9 years agoRemove mention of SVN from HACKING
Branden Archer [Thu, 24 Dec 2015 20:14:27 +0000 (15:14 -0500)]
Remove mention of SVN from HACKING

9 years agoMerge pull request #4 from brarcher/master
brarcher [Thu, 24 Dec 2015 18:33:40 +0000 (13:33 -0500)]
Merge pull request #4 from brarcher/master

Deleting .cvsignore

9 years agoDeleting .cvsignore
brarcher [Thu, 24 Dec 2015 15:53:43 +0000 (10:53 -0500)]
Deleting .cvsignore

No longer need this, not in cvs anymore

9 years agoRemove information about packages in README
Branden Archer [Thu, 24 Dec 2015 03:39:23 +0000 (22:39 -0500)]
Remove information about packages in README

This information is likely no longer relevant or important

9 years agoMention new project page in README
Branden Archer [Thu, 24 Dec 2015 03:38:57 +0000 (22:38 -0500)]
Mention new project page in README

9 years agoweb: update webpage to point to github instead of sourceforge
Branden Archer [Thu, 24 Dec 2015 03:28:51 +0000 (22:28 -0500)]
web: update webpage to point to github instead of sourceforge

9 years agocheckmk: use double slash in regular expression
brarcher [Wed, 23 Dec 2015 16:59:04 +0000 (16:59 +0000)]
checkmk: use double slash in regular expression

For many awk implementations using both a single and double slash
escapes in regex expressions in strings works correctly. However,
it was observed on Solaris that a single slash results in the
literal value being added to the string (e.g. \n was a newline)
and only the double slash works as expected.

As there should be no harm, updating the regex expressions to use
double slashes.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1229 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agotests: fix expected strings for output tests when fork is unavailable
brarcher [Mon, 14 Sep 2015 02:11:58 +0000 (02:11 +0000)]
tests: fix expected strings for output tests when fork is unavailable

There were a few discrepancies with the expected output and the
actual output for the special characters test.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1228 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agotests: properly emit issue in log output test
brarcher [Mon, 14 Sep 2015 01:25:16 +0000 (01:25 +0000)]
tests: properly emit issue in log output test

The expected string was in ${2}, but ${expected} was used.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1227 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agotests: if xmllint exists, also run xml output through it
brarcher [Mon, 14 Sep 2015 01:25:14 +0000 (01:25 +0000)]
tests: if xmllint exists, also run xml output through it

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1226 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoEmit only valid XML characters
brarcher [Mon, 14 Sep 2015 01:25:13 +0000 (01:25 +0000)]
Emit only valid XML characters

Previously output XML files could contain illegal characters.
Some of these characters could be encoded, and others should
not be output at all.

This change will attempt to encode characters if they are not
printable or are special. Note that if a test contains a UTF-8
charater it will not be printed out accurately.

In order to get the tests for encoding XML characters to work,
the characters separating fields in a shell variable needed to
be changed. Originally white space would separate fields,
meaning shell would eat the extra whitespace in the tests.
Because of the change, the xml output test needed to be
reworked to not rely on white space field separators.
Additionally, the printf program is used to properly un-escape
strings used in the tests.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1225 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agouse filterdiff tool if available to strip timestamps from example
brarcher [Sun, 13 Sep 2015 21:55:50 +0000 (21:55 +0000)]
use filterdiff tool if available to strip timestamps from example

The diff tool will emit a timestamp along with the diff. This
timestamps prevents build output from being consistent between
builds.

If the filterdiff tool is detected, use it to strip the timestamp
and allow for reproducible build output.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1224 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoUpdate FSF address in LGPL headers
brarcher [Sun, 13 Sep 2015 16:39:09 +0000 (16:39 +0000)]
Update FSF address in LGPL headers

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1223 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoAdd LGPL header to files without the header
brarcher [Sun, 13 Sep 2015 16:39:05 +0000 (16:39 +0000)]
Add LGPL header to files without the header

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1222 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoAdd development header back to NEWS
brarcher [Sun, 2 Aug 2015 19:49:55 +0000 (19:49 +0000)]
Add development header back to NEWS

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1221 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoUpdate release information on website 0.10.0
brarcher [Sun, 2 Aug 2015 19:49:53 +0000 (19:49 +0000)]
Update release information on website

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1220 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoUpdate for release
brarcher [Sun, 2 Aug 2015 19:22:58 +0000 (19:22 +0000)]
Update for release

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1218 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoUpdate for release
brarcher [Sun, 2 Aug 2015 19:21:14 +0000 (19:21 +0000)]
Update for release

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1217 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoconfigure: Remove duplicated use of AC_USE_SYSTEM_EXTENSIONS
brarcher [Sun, 2 Aug 2015 16:59:36 +0000 (16:59 +0000)]
configure: Remove duplicated use of AC_USE_SYSTEM_EXTENSIONS

Either the first or the second one is redundant so one should be
removed but beware, there's a bug introduced in automake 1.14
(fixed in 1.15) that would potentially cause trouble if you put it
before AM_INIT_AUTOMAKE.

More info about this automake bug here:
http://debbugs.gnu.org/cgi/bugreport.cgi?bug=15981

https://sourceforge.net/p/check/bugs/109

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1216 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agotests: adjust expected line number due to previous commit
brarcher [Mon, 6 Jul 2015 23:29:02 +0000 (23:29 +0000)]
tests: adjust expected line number due to previous commit

A header was added to the program under test, which adjusted the
line numbers.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1215 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agotests: include missing libcompat header
brarcher [Mon, 6 Jul 2015 13:20:31 +0000 (13:20 +0000)]
tests: include missing libcompat header

This header is necessary one some platforms where some portions
of check.h are unrecognized. For example, using the MSVC compiler
on Windows the pid_t usage in check.h results in a compiler error.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1214 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agotests: define variable at top of block
brarcher [Mon, 6 Jul 2015 13:20:28 +0000 (13:20 +0000)]
tests: define variable at top of block

Some compilers may be picky about defining variables at the
beginning of the block.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1213 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoreplace // comments with /* */ comments
brarcher [Mon, 6 Jul 2015 13:20:26 +0000 (13:20 +0000)]
replace // comments with /* */ comments

Some compilers are strict with only accepting C style
block comments

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1212 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agodoc: Change "Variables" -> "Variables" for consistency
brarcher [Mon, 6 Jul 2015 13:20:24 +0000 (13:20 +0000)]
doc: Change "Variables" -> "Variables" for consistency

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1211 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agodoc: Add appendix containing all environment variables
brarcher [Mon, 6 Jul 2015 03:28:35 +0000 (03:28 +0000)]
doc: Add appendix containing all environment variables

Bug#33

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1210 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoconfigure: fix check micro version
brarcher [Sun, 14 Jun 2015 16:07:03 +0000 (16:07 +0000)]
configure: fix check micro version

This was not updated during the last release. Although it is technically
still out of date (as this is now check 0.9.14+), it is at least
a little more correct.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1209 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoconfigure: output check version in summary
brarcher [Sun, 14 Jun 2015 16:07:02 +0000 (16:07 +0000)]
configure: output check version in summary

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1208 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoconfigure: do not use echo -n option in summary print out
brarcher [Sun, 14 Jun 2015 15:55:09 +0000 (15:55 +0000)]
configure: do not use echo -n option in summary print out

OSX's version of echo does not support the -n option, and thus the
summary output looked incorrect.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1207 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agotests: remove unused variables from main()
brarcher [Sun, 14 Jun 2015 15:55:08 +0000 (15:55 +0000)]
tests: remove unused variables from main()

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1206 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agotests: fix compiler warning regarding improper prototype
brarcher [Sun, 14 Jun 2015 15:55:05 +0000 (15:55 +0000)]
tests: fix compiler warning regarding improper prototype

Clang warned that this prototype was not proper as it had
no parameter list, and insisted on 'void'.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1205 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agocmake: Include time.h on several checks to prevent false negatives
brarcher [Sun, 14 Jun 2015 15:55:02 +0000 (15:55 +0000)]
cmake: Include time.h on several checks to prevent false negatives

The clock_t, clockid_t and timer_t types are deemed not found when they
are actually available if time.h is included. Include the header during
the checks.

Patch#53

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1204 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoCatch SIGINT and SIGTERM and kill running tests
brarcher [Thu, 7 May 2015 03:16:26 +0000 (03:16 +0000)]
Catch SIGINT and SIGTERM and kill running tests

Tests are forked and placed into their own process group.
If the test runner process receives a terminal signal it
exits but the test continue running. This could result
in test processes running indefinitely if they do not
exit themselves.

This changes catches SIGINT and SIGTERM signals and kills
the test processes.

Note that other signals, such as SIGSEGV and SIGFPE will still
result in test processes being leaked.

This code is based on that in patch #52.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1203 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoChange behavior of calls for fork() on non-fork() platforms
brarcher [Thu, 7 May 2015 03:16:23 +0000 (03:16 +0000)]
Change behavior of calls for fork() on non-fork() platforms

It was requested by users of Windows (e.g. non-fork() supporting
platforms) that calls to set CK_FORK mode be ignored if fork()
is not supported. This is to avoid the need to detect the
current platform and conditionally compile unit test code.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1202 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoupdate AUTHORS file
brarcher [Sun, 15 Mar 2015 02:23:38 +0000 (02:23 +0000)]
update AUTHORS file

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1201 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoUpdate NEWS
brarcher [Thu, 12 Mar 2015 13:02:04 +0000 (13:02 +0000)]
Update NEWS

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1200 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoadd extra space around comparison operators for assert messages
brarcher [Thu, 12 Mar 2015 12:58:57 +0000 (12:58 +0000)]
add extra space around comparison operators for assert messages

The following argument was made in the report of bug #102 to
include extra space around the comparison operator in
assert messages:

When ck_assert_int_gt(1 + 2, 3 + 4) fails, it outputs a string like this:

   Assertion '1 + 2>3 + 4' failed: 1 + 2==3, 3 + 4==7

This doesn’t look nice, since most programmers write spaces around comparison operators.
Therefore, the assertion message should do the same.

   Assertion '1 + 2 > 3 + 4' failed: 1 + 2 == 3, 3 + 4 == 7

For condensed code, it would look like this:

   Assertion '1+2 > 3+4' failed: 1+2 == 3, 3+4 == 7

I think the versions with the spaces look nicer than those without.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1199 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoDo not remove check.info during 'clean' target
brarcher [Thu, 12 Mar 2015 02:50:43 +0000 (02:50 +0000)]
Do not remove check.info during 'clean' target

It was observed that if one does not have texinfo installed
and invoked "make clean" then a subsequent build will fail
because the docs cannot be built. The issue is that
"make clean" will remove check.info and require it be rebuilt.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1198 64e312b2-a51f-0410-8e61-82d0ca0eb02a

9 years agoUse mkstemp() if available instead of tmpfile() or tempnam()
brarcher [Thu, 12 Mar 2015 02:31:57 +0000 (02:31 +0000)]
Use mkstemp() if available instead of tmpfile() or tempnam()

This is based on patch #51 submitted by Neos3452 from Sourceforge.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1197 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agotests: expect location of file based on srcdir
brarcher [Fri, 28 Nov 2014 15:35:33 +0000 (15:35 +0000)]
tests: expect location of file based on srcdir

Otherwise, when the test is run out of the source tree
the test will fail.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1196 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoadd test_check_nofork_teardown.sh to EXTRA_DIST
brarcher [Fri, 28 Nov 2014 06:05:42 +0000 (06:05 +0000)]
add test_check_nofork_teardown.sh to EXTRA_DIST

Otherwise, the prereleasecheck target will fail

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1195 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoChange spacing.
brarcher [Fri, 28 Nov 2014 05:50:23 +0000 (05:50 +0000)]
Change spacing.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1194 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoreport correct error if teardown after failure in no fork mode
brarcher [Fri, 28 Nov 2014 05:50:22 +0000 (05:50 +0000)]
report correct error if teardown after failure in no fork mode

In nofork mode, the location of a failed assertion within a test
case is lost if that test case has a checked teardown fixture
(even if that fixture function is empty).

The reason why this happens is this: the end of the message sequence
coming down the pipe is CK_MSG_LOC (location of failing test),
CK_MSG_FAIL, CK_MSG_CTX (TEARDOWN). It is this final message that
confuses things, because rcvmsg_update_ctx() updates rmsg->lastctx
(which I suspect is the right thing for it to do), which is the ctx
value used by the first 'if' body in construct_test_result() in its
call to tr_set_loc_by_ctx().

The solution is to initialize tr->ctx to rmsg->failctx if
it is not CK_CTX_INVALID.

Bug #99.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1193 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoautotools: change automake requirement to 1.11.2
brarcher [Tue, 23 Sep 2014 01:29:02 +0000 (01:29 +0000)]
autotools: change automake requirement to 1.11.2

The AM_PROG_AR macro was introduced into Automake 1.11.2
(Dec 2011), which is used in Check's configure script and
in the example's. Check for this version of Automake
instead.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1192 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agodoc: change 'mimick' -> 'mimic'
brarcher [Tue, 19 Aug 2014 12:22:56 +0000 (12:22 +0000)]
doc: change 'mimick' -> 'mimic'

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1191 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agodoc: mention that the output from "make check" depends on Automake version
brarcher [Tue, 19 Aug 2014 12:22:54 +0000 (12:22 +0000)]
doc: mention that the output from "make check" depends on Automake version

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1190 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoupdate online docs during updateweb
brarcher [Tue, 19 Aug 2014 12:22:52 +0000 (12:22 +0000)]
update online docs during updateweb

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1189 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agodoc: change phrasing on request for corrections to docs.
brarcher [Tue, 19 Aug 2014 01:21:37 +0000 (01:21 +0000)]
doc: change phrasing on request for corrections to docs.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1188 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agodoc: update docs to deprecate AM_PATH_CHECK, mention CMake
brarcher [Tue, 19 Aug 2014 01:21:35 +0000 (01:21 +0000)]
doc: update docs to deprecate AM_PATH_CHECK, mention CMake

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1187 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agodoc: update copyright on docs
brarcher [Tue, 19 Aug 2014 01:21:30 +0000 (01:21 +0000)]
doc: update copyright on docs

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1186 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agotests: cast output of malloc() to goal type
brarcher [Wed, 30 Jul 2014 12:49:11 +0000 (12:49 +0000)]
tests: cast output of malloc() to goal type

clang++ did not like casting void* to char* implicitly.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1185 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agotests: add prototype for escape_percent()
brarcher [Wed, 30 Jul 2014 12:49:08 +0000 (12:49 +0000)]
tests: add prototype for escape_percent()

clang++ emitted an error if the prototype was not present

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1184 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoDo not vsnprintf expression string passed to ck_abort()
brarcher [Wed, 30 Jul 2014 03:09:12 +0000 (03:09 +0000)]
Do not vsnprintf expression string passed to ck_abort()

If ck_abort() detects a failure, the expression which was
evaluated is passed to _ck_assert_failed to print.
However, the previous behavior was to send the expression
to vsnprintf(), which would expect it to be properly formatted.

If the expression in ck_abort() contained % characters, such as:
   ck_abort(bar%foo == 0)
the "%f" portion would be printed as some non-existent floating
point number.

Now, if there is no message passed (and the expression is to
be used) simply report the expression as is. Only format
something with vsnprintf() if there is actual data that
expects formatting.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1183 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agotests: escape % before passing string to ck_abort_msg()
brarcher [Wed, 30 Jul 2014 03:09:09 +0000 (03:09 +0000)]
tests: escape % before passing string to ck_abort_msg()

ch_abort_msg() expects printf arguments. Passing in a constant
string that happens to have '%' in it will not end as expected,
as the underlying vsnprintf will attempt to format them.

As some unit tests now attempt to have improper output involving
'%' in expressions, it is now possible that the failure message
which is expected during Check's unit tests involve '%'. As such,
only a properly escaped string should be passed to ck_abort_msg().

This change will force the string passed to ck_abort_msg() in the
test_check_failure_msgs unit test to properly escape any '%'
found, so that if a failure did happen the correct text is printed
to the screen.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1182 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoweb: add instructions for building on Solaris
brarcher [Sun, 27 Jul 2014 01:50:34 +0000 (01:50 +0000)]
web: add instructions for building on Solaris

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1181 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoNEWS: restore in development header
brarcher [Sat, 26 Jul 2014 15:21:54 +0000 (15:21 +0000)]
NEWS: restore in development header

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1180 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoweb: update release version on main page
brarcher [Sat, 26 Jul 2014 15:21:53 +0000 (15:21 +0000)]
web: update release version on main page

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1179 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoUpdate for release
brarcher [Sat, 26 Jul 2014 04:31:17 +0000 (04:31 +0000)]
Update for release

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1177 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoweb: add link to solaris buildbot
brarcher [Sat, 26 Jul 2014 03:37:51 +0000 (03:37 +0000)]
web: add link to solaris buildbot

An automated build has been setup for the Check project on
OpenCSW's BuildBot, which builds for Solaris. The link leads
to the latest build status of Check on several architectures.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1176 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years ago* update for release
brarcher [Sat, 26 Jul 2014 03:37:48 +0000 (03:37 +0000)]
* update for release

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1175 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agocmake: include getline.c into libcompat if getline() is missing
brarcher [Thu, 3 Jul 2014 18:43:49 +0000 (18:43 +0000)]
cmake: include getline.c into libcompat if getline() is missing

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1174 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoautotools: remove AIX fix for broken xlc v6 compiler
brarcher [Tue, 24 Jun 2014 13:00:29 +0000 (13:00 +0000)]
autotools: remove AIX fix for broken xlc v6 compiler

The issue with the xlc v6 compiler on AIX seems to be a compiler
bug which is resolved in future releases of the compiler.

This fix, as it turns out, did not properly detect the bug
or resolve the issue. Unless it becomes really important,
the attempt to get around the bug is removed from Check.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1173 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoProvide getline() if unavailable
brarcher [Tue, 24 Jun 2014 04:45:07 +0000 (04:45 +0000)]
Provide getline() if unavailable

getline() is POSIX.1-2008, but is unavailable on several platforms,
including MinGW and Solaris 10.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1172 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoUse casts when assigning a void*
brarcher [Mon, 23 Jun 2014 04:13:57 +0000 (04:13 +0000)]
Use casts when assigning a void*

The changes are necessary for Check to compile with a c++ compiler.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1171 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoChange name 'new' to something else
brarcher [Mon, 23 Jun 2014 04:13:55 +0000 (04:13 +0000)]
Change name 'new' to something else

Change necessary for compiling on c++ compiler, as
'new' is a reserved name.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1170 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoAdd comment for why test should be CK_FORK mode only
brarcher [Mon, 23 Jun 2014 04:13:54 +0000 (04:13 +0000)]
Add comment for why test should be CK_FORK mode only

Some of these tests, now that checked fixtures can be used
with CK_NOFORK mode, may be enabled regardless of fork()
availability. This specific test, however, will not work as is
without fork().

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1169 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agorework how line numbers are verified in check_check_sub.c
brarcher [Mon, 23 Jun 2014 04:13:52 +0000 (04:13 +0000)]
rework how line numbers are verified in check_check_sub.c

Line number checking failures in check_check_sub.c are broken
and were broken since r527 (2009-02-02).

_STR(__LINE__) as is evaluates to "__LINE__", which results in -1
being returned from atoi. A -1 means to not check the line
number of the failure. As a result, no line numbers were checked
since r527. Checking with strtol finds the conversion failure,
which is what identified this bug.

Note that more redirection can be used to convert __LINE__ to a string,
e.g.:
   #define LINE_TO_STRING(Y) #Y
   #define _LINE_TO_STRING(Y) LINE_TO_STRING(Y)
   #define _STR(Y) _LINE_TO_STRING(Y)

However, then the line converted to a string is the line which references
the macro. I.e., not the line number of the test, which was expected.

The tests of the failure line numbers are valuable. To fix them,
instead of determining the values at compile time, they are determined
at run time. Whenever a test should fail, record_failure_line_num()
will be used to record the line number to a temporary file.
This in several cases required splitting up a test which was used
to induce a success and a failure. For such functions, there is
now a clear function to use when a success is required (no call
to record_failure_line_num()) and one to use when a failure
is required at a specific location (to call record_failure_line_num()).

The FILE pointer is created at the setup of the sub suite, and
deleted on the cleanup. The test_check_failure_lnos test then
will, for each failure, read the next line in the file and make
sure it matches the value reported by Check.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1168 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoUse proper storage type for print_output
brarcher [Mon, 23 Jun 2014 04:13:50 +0000 (04:13 +0000)]
Use proper storage type for print_output

This fix was necessary to get Check compiling with a c++ compiler.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1167 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoPass in print_output to srunner_run_all in test_null
brarcher [Mon, 23 Jun 2014 04:13:48 +0000 (04:13 +0000)]
Pass in print_output to srunner_run_all in test_null

Change was necessary to get Check to compile on a c++
compiler

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1166 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoCast to ck_result_ctx in test_pack_ctx_limit
brarcher [Mon, 23 Jun 2014 04:13:46 +0000 (04:13 +0000)]
Cast to ck_result_ctx in test_pack_ctx_limit

This change was necessary to get Check compiling on a c++
compiler.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1165 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoPass in proper arguments for upack in test_pack_abuse
brarcher [Mon, 23 Jun 2014 04:13:44 +0000 (04:13 +0000)]
Pass in proper arguments for upack in test_pack_abuse

Even those the test 'abuses' upack, passing in a non-pointer
to a pointer argument is a bad idea.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1164 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoMove sub_nfailed/ntests vars inside check_check_master.c
brarcher [Mon, 23 Jun 2014 04:13:42 +0000 (04:13 +0000)]
Move sub_nfailed/ntests vars inside check_check_master.c

The header file check_check.h declaring these resulted in
multiple files creating storage but for duplicate names.

Only one of these (sub_ntests) was ever used outside of
check_check_master.c. Now it is accessable via an extern
declaration.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1163 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agocast upack_int() to goal container
brarcher [Mon, 23 Jun 2014 04:13:39 +0000 (04:13 +0000)]
cast upack_int() to goal container

Needed to get Check to compile on a c++ compiler

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1162 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoCase void* to pthread_mutex_t before passing to unlock
brarcher [Mon, 23 Jun 2014 04:13:37 +0000 (04:13 +0000)]
Case void* to pthread_mutex_t before passing to unlock

This change was necessary to get Check to compile on a
c++ compiler

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1161 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoCase void* to goal container for logging callbacks
brarcher [Mon, 23 Jun 2014 04:13:35 +0000 (04:13 +0000)]
Case void* to goal container for logging callbacks

These changes were necessary to get Check to compile on
a c++ compiler

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1160 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agocast value sent to srunner_set_fork_status to fork_status
brarcher [Mon, 23 Jun 2014 04:13:32 +0000 (04:13 +0000)]
cast value sent to srunner_set_fork_status to fork_status

The change is necessary for compiling Check with a c++ compiler.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1159 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoFix data type of internal fork_status variable
brarcher [Mon, 23 Jun 2014 04:13:29 +0000 (04:13 +0000)]
Fix data type of internal fork_status variable

This was necessary to compile Check with a c++ compiler.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1158 64e312b2-a51f-0410-8e61-82d0ca0eb02a

10 years agoCase void* to goal container after using Check's lists
brarcher [Mon, 23 Jun 2014 04:13:21 +0000 (04:13 +0000)]
Case void* to goal container after using Check's lists

These changes were necessary to get Check to compile with
a c++ compiler.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@1157 64e312b2-a51f-0410-8e61-82d0ca0eb02a