]>
begriffs open source - libtap/log
Gonzalo Diethelm [Mon, 23 Mar 2020 16:45:33 +0000 (17:45 +0100)]
Make division by zero test fail
I am guessing on my environment, `x = x/x` gets optimized by the
compiler into `x = 1`, because the test didn't die; now it does.
Jacob Gelbman [Tue, 11 Dec 2018 19:11:39 +0000 (13:11 -0600)]
Add spacing
Jacob Gelbman [Tue, 11 Dec 2018 19:10:19 +0000 (13:10 -0600)]
Merge pull request #34 from alyptik/fix_warnings
Fix linter and compiler warnings
Jacob Gelbman [Tue, 11 Dec 2018 19:07:47 +0000 (13:07 -0600)]
Merge pull request #35 from jeffsw/master
Fix bug which prevents builds for Windows targets
Jeff Wheeler [Tue, 11 Dec 2018 18:58:14 +0000 (13:58 -0500)]
Jeff Wheeler [Tue, 11 Dec 2018 18:52:58 +0000 (13:52 -0500)]
Fixing a bug which prevents builds for Windows targets.
Without the (...) in this unlike macro, the resulting preprocessor
output is bad and generates the below compile-time error:
t/like.c: In function ‘main’:
./tap.h:70:26: error: called object is not a function or function pointer
#define unlike tap_skip(1, "unlike is not implemented on Windows")
Joey Pabalinas [Sat, 27 Oct 2018 19:43:18 +0000 (09:43 -1000)]
tap.c: fix unused parameter warnings
Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
Joey Pabalinas [Sat, 27 Oct 2018 19:42:42 +0000 (09:42 -1000)]
tap:c don't leak arg va_list if format string is NULL
Signed-off-by: Joey Pabalinas <joeypabalinas@gmail.com>
Jacob Gelbman [Thu, 28 Jun 2018 17:47:51 +0000 (12:47 -0500)]
Merge pull request #33 from travispaul/master
Only define define MAP_ANONYMOUS when necessary
Travis Paul [Thu, 28 Jun 2018 06:08:16 +0000 (06:08 +0000)]
Only define define MAP_ANONYMOUS when necessary
Jacob Gelbman [Wed, 28 Dec 2016 19:01:41 +0000 (13:01 -0600)]
Change the synopsis a little bit
Jacob Gelbman [Wed, 28 Dec 2016 18:40:18 +0000 (12:40 -0600)]
They will have diff installed, no need to mention it
Jacob Gelbman [Wed, 28 Dec 2016 18:29:53 +0000 (12:29 -0600)]
Do not auto cast first argument to an int in the ok macro
Jacob Gelbman [Tue, 8 Nov 2016 07:10:50 +0000 (01:10 -0600)]
Add a note about the use of macros
Jacob Gelbman [Sun, 6 Nov 2016 18:48:01 +0000 (12:48 -0600)]
Remove the ; at the end of cmp_mem macro
Jacob Gelbman [Fri, 28 Oct 2016 16:11:31 +0000 (11:11 -0500)]
Makefile variable changes to help overrides on command line
Jacob Gelbman [Fri, 28 Oct 2016 16:07:41 +0000 (11:07 -0500)]
Merge pull request #27 from sunnythepooh/sunnythepooh-makefile-arguments-patch
Allow CFLAGS and CC to be append and set
Sunny Chan [Fri, 28 Oct 2016 07:23:17 +0000 (15:23 +0800)]
Allow CFLAGS and CC to be append and set
This change would allow CFLAGS to be append in the command line - for example if we want to make 32bit version on 64bit file we can do:
CFLAGS=-m32 make
which is not possible if you use equals.
likewise ?= in CC allow user to set CC in the environment
Jacob Gelbman [Tue, 9 Feb 2016 03:00:49 +0000 (21:00 -0600)]
Use x variable so compiler doesn't complain about it
Jacob Gelbman [Tue, 9 Feb 2016 02:40:23 +0000 (20:40 -0600)]
Cast argument to int to avoid possibly compiler warnings
Jacob Gelbman [Fri, 17 Jul 2015 21:45:15 +0000 (16:45 -0500)]
Make all diagnostic messages go to STDOUT to avoid out of order display issues
Jacob Gelbman [Fri, 17 Jul 2015 21:02:45 +0000 (16:02 -0500)]
Rely on prove (or another tap consumer) to provide color results
Jacob Gelbman [Fri, 17 Jul 2015 20:55:15 +0000 (15:55 -0500)]
Test itself without Perl
Jacob Gelbman [Fri, 17 Jul 2015 18:22:08 +0000 (13:22 -0500)]
Remove the extra whitespace
Jacob Gelbman [Fri, 17 Jul 2015 04:18:47 +0000 (23:18 -0500)]
Merge pull request #23 from tekknolagi/mb-add-color
Add color text
Maxwell Bernstein [Thu, 16 Jul 2015 23:33:28 +0000 (16:33 -0700)]
Make color optional
To add color to output, compile like so:
TAP_COLOR_OUTPUT=yes make
Max Bernstein [Tue, 12 Aug 2014 20:17:56 +0000 (13:17 -0700)]
Add color text
Jacob Gelbman [Fri, 10 Jul 2015 19:12:13 +0000 (14:12 -0500)]
Move tap.pc section down so all section stays the default
Jacob Gelbman [Fri, 10 Jul 2015 18:46:34 +0000 (13:46 -0500)]
Merge pull request #22 from quentusrex/master
Adding pkgconfig file
William King [Fri, 10 Jul 2015 18:09:57 +0000 (11:09 -0700)]
Adding pkgconfig file
Jacob Gelbman [Fri, 10 Jul 2015 17:28:36 +0000 (12:28 -0500)]
License under LGPL
Jacob Gelbman [Tue, 24 Mar 2015 16:00:44 +0000 (11:00 -0500)]
done_testing to return 0, 1, or 2 not the number of tests failed
Jacob Gelbman [Wed, 18 Mar 2015 17:32:04 +0000 (12:32 -0500)]
Link tests with the static library to avoid LD_LIBRARY_PATH errors
Jacob Gelbman [Sun, 25 Jan 2015 19:56:34 +0000 (13:56 -0600)]
Remove the Visual Studio project file since it might be out of date
Jacob Gelbman [Sun, 25 Jan 2015 19:10:50 +0000 (13:10 -0600)]
Merge branch 'beatgammit-master'
Jacob Gelbman [Sun, 25 Jan 2015 19:09:26 +0000 (13:09 -0600)]
Create libtap.so by default
T. Jameson Little [Sun, 25 Jan 2015 06:46:52 +0000 (23:46 -0700)]
Create shared objects by default
- create directories as necessary
- use -fPIC so shared objects work
- updated .gitignore
Jacob Gelbman [Sat, 24 Jan 2015 23:06:21 +0000 (17:06 -0600)]
Test each file with a .expected file instead of within the .t script
Jacob Gelbman [Sat, 24 Jan 2015 22:25:01 +0000 (16:25 -0600)]
Add a PREFIX variable to the Makefile
Jacob Gelbman [Mon, 1 Dec 2014 20:15:17 +0000 (14:15 -0600)]
Merge pull request #16 from fredmorcos/patch-1
_BSD_SOURCE is deprecated so use _DEFAULT_SOURCE instead
Fred Morcos [Mon, 1 Dec 2014 19:56:29 +0000 (20:56 +0100)]
_BSD_SOURCE is deprecated so use _DEFAULT_SOURCE instead
Jacob Gelbman [Tue, 25 Nov 2014 21:37:44 +0000 (15:37 -0600)]
Merge pull request #15 from autarch/patch-2
Ignore more junk in .gitignore
Dave Rolsky [Tue, 25 Nov 2014 17:53:38 +0000 (11:53 -0600)]
Ignore more junk
This is produced on my Ubuntu 14.04 system when using libtap to test library.
Jacob Gelbman [Thu, 30 Oct 2014 15:33:42 +0000 (10:33 -0500)]
Merge pull request #13 from sevko/master
Minor additions to INSTALL and README.md
Severyn Kozak [Thu, 30 Oct 2014 13:17:24 +0000 (09:17 -0400)]
Add install section to README; add make check note.
INSTALL
-Make note about installing the `Test::Differences` CPAN module
before running `make check`.
README.md
-Add a brief installation section, with commands for installing
on Unix. Link to `INSTALL`.
Jacob Gelbman [Thu, 15 May 2014 16:12:52 +0000 (11:12 -0500)]
Make a function for finding memory difference offsets
Sven Putteneers [Thu, 15 May 2014 08:41:25 +0000 (10:41 +0200)]
cmp_mem() improvements
- NULL for got and expected is handled
- reworked logic so memcmp() is not needed
- cosmetic fix in diagnostics
Jacob Gelbman [Wed, 14 May 2014 15:58:46 +0000 (10:58 -0500)]
Fix whitespace
Sven Putteneers [Wed, 14 May 2014 15:25:56 +0000 (17:25 +0200)]
Add cmp_mem test
Compares two memory areas and fails if the contents differ. The offset
of the first differing byte is reported.
Jacob Gelbman [Wed, 5 Mar 2014 23:50:00 +0000 (17:50 -0600)]
Replace ternary operations with if statements
Jacob Gelbman [Mon, 24 Feb 2014 18:33:10 +0000 (12:33 -0600)]
Ignore all compiled tests no matter their names
Jacob Gelbman [Mon, 24 Feb 2014 18:13:22 +0000 (12:13 -0600)]
Update license to GPLv2+ to be compatible with the Apache 2.0 license
Dave Rolsky [Wed, 9 Oct 2013 16:21:13 +0000 (11:21 -0500)]
Define _BSD_SOURCE to 1
This appears to be needed to get the MAP_ANONYMOUS macro when compiling with --std=c99
Jacob Gelbman [Thu, 5 Sep 2013 16:06:56 +0000 (11:06 -0500)]
Make better naming choices: planf -> tap_plan, skippy -> tap_skip, todof -> tap_todo
Jacob Gelbman [Thu, 5 Sep 2013 15:52:26 +0000 (10:52 -0500)]
Remove autotools support
Brilliantov Kirill Vladimirovich [Sun, 28 Jul 2013 13:07:26 +0000 (17:07 +0400)]
Add autotools support
Signed-off-by: Brilliantov Kirill Vladimirovich <brilliantov@inbox.ru>
Signed-off-by: Jacob Gelbman <gelbman@gmail.com>
Mathias Lafeldt [Thu, 26 Jul 2012 14:45:29 +0000 (16:45 +0200)]
Travis now supports C
Jake Gelbman [Fri, 13 Jul 2012 17:05:39 +0000 (12:05 -0500)]
Rename t/tap.t to t/test.t
Jake Gelbman [Fri, 13 Jul 2012 17:03:45 +0000 (12:03 -0500)]
Generate testing command in subroutine
Jake Gelbman [Fri, 13 Jul 2012 16:25:20 +0000 (11:25 -0500)]
Rename endskip and endtodo to end_skip and end_todo
The other functions use underscore separated names like cmp_ok, dies_ok,
lives_ok, done_testing, BAIL_OUT. These functions should too.
Jake Gelbman [Fri, 13 Jul 2012 16:19:23 +0000 (11:19 -0500)]
Use the name Windows instead of MSWin32
gelbman [Fri, 13 Jul 2012 16:06:22 +0000 (11:06 -0500)]
Rename cplan, ctodo, and cendtodo to planf, todof, endtodof
gelbman [Thu, 12 Jul 2012 23:52:50 +0000 (18:52 -0500)]
Check for malloc errors
gelbman [Wed, 11 Jul 2012 21:51:30 +0000 (16:51 -0500)]
Simplify synopsis
gelbman [Wed, 11 Jul 2012 21:33:14 +0000 (16:33 -0500)]
Give the isnt and unlike arguments better names
gelbman [Wed, 11 Jul 2012 21:12:36 +0000 (16:12 -0500)]
Merge remote-tracking branch 'mlafeldt/travis'
gelbman [Wed, 11 Jul 2012 21:08:29 +0000 (16:08 -0500)]
Merge remote-tracking branch 'mlafeldt/gitignore-unix'
Jake [Wed, 11 Jul 2012 20:29:22 +0000 (15:29 -0500)]
License with GPLv2
Mathias Lafeldt [Tue, 10 Jul 2012 09:10:10 +0000 (11:10 +0200)]
Add Travis CI config
Mathias Lafeldt [Tue, 10 Jul 2012 09:42:32 +0000 (11:42 +0200)]
Ignore build products for Unix-like systems
jake [Sun, 17 Jun 2012 21:47:56 +0000 (16:47 -0500)]
Indent with spaces
jake [Sat, 25 Feb 2012 08:34:13 +0000 (02:34 -0600)]
Combine #ifdef statements for MAP_ANONYMOUS macro
Sven Nierlein [Fri, 24 Feb 2012 17:53:52 +0000 (18:53 +0100)]
make tap work on freebsd
Jake Gelbman [Tue, 11 Oct 2011 15:05:21 +0000 (08:05 -0700)]
Merge pull request #3 from bricef/master
compilation with older compilers (C90)
bricef [Wed, 5 Oct 2011 14:37:26 +0000 (16:37 +0200)]
Declaration moved out of statement for C90 compliance.
bricef [Thu, 29 Sep 2011 17:20:57 +0000 (19:20 +0200)]
Removes declaration in statements. (When using older compilers, declarations in statements are not allowed - C90 style)
Jake [Fri, 2 Sep 2011 19:37:17 +0000 (14:37 -0500)]
Combine config.mk and t/Makefile into Makefile. Separate windows related stuff to its own Makefile.
Jake [Fri, 2 Sep 2011 17:15:20 +0000 (12:15 -0500)]
Ignore vim swap files.
Jake [Fri, 2 Sep 2011 16:54:34 +0000 (11:54 -0500)]
Compile everything before running the tests.
Jake [Fri, 2 Sep 2011 16:52:07 +0000 (11:52 -0500)]
Make the library compatible with gcc -ansi.
Replace ## with "" in the macros.
Provide a more correct version of va_copy.
Add an ANSI option to the Makefile that will will include _BSD_SOURCE macro
Jake [Fri, 2 Sep 2011 15:18:48 +0000 (10:18 -0500)]
Undo accidental merge of gh-pages.
jake [Wed, 31 Aug 2011 04:40:42 +0000 (23:40 -0500)]
A small whitespace change.
jake [Wed, 31 Aug 2011 04:38:46 +0000 (23:38 -0500)]
Merge branch 'gh-pages' of github.com:zorgnax/libtap
Jake [Mon, 29 Aug 2011 23:24:29 +0000 (18:24 -0500)]
Require the done_testing macro to take empty parentheses.
Jake [Mon, 29 Aug 2011 23:04:12 +0000 (18:04 -0500)]
Add copyright heading.
Jake [Fri, 17 Jun 2011 20:34:56 +0000 (13:34 -0700)]
github generated gh-pages branch
jake [Wed, 25 May 2011 05:29:43 +0000 (00:29 -0500)]
Fix INSTALL text.
jake [Wed, 25 May 2011 05:19:03 +0000 (00:19 -0500)]
Add INSTALL file.
jake [Wed, 25 May 2011 04:49:44 +0000 (23:49 -0500)]
Consolidate phony targets.
jake [Wed, 25 May 2011 04:36:05 +0000 (23:36 -0500)]
License under GPL.
jake [Wed, 25 May 2011 04:10:14 +0000 (23:10 -0500)]
Simplify dies_ok, lives_ok macro definitions.
jake [Wed, 25 May 2011 03:36:58 +0000 (22:36 -0500)]
Dont use EXIT_* macros.
jake [Wed, 25 May 2011 03:23:38 +0000 (22:23 -0500)]
Add SKIP_ALL plan.
jake [Wed, 25 May 2011 02:35:08 +0000 (21:35 -0500)]
Add BAIL_OUT.
jake [Wed, 25 May 2011 01:20:09 +0000 (20:20 -0500)]
Add done_testing macro to match Test::More.
jake [Wed, 25 May 2011 00:34:39 +0000 (19:34 -0500)]
Rearrange win32 specific stuff to one if block.
jake [Tue, 24 May 2011 03:16:48 +0000 (22:16 -0500)]
prove should only run .t files with perl.
jake [Tue, 24 May 2011 03:02:22 +0000 (22:02 -0500)]
Only use one ifdef __cplusplus in tap.h and remove gnu .t executable extension.
Alexander Kahl [Mon, 23 May 2011 14:38:44 +0000 (16:38 +0200)]
added va_copy definition for systems like winblows that don't have it
added c++ ifdefs with extern "C" declarations
Alexander Kahl [Mon, 23 May 2011 14:37:52 +0000 (16:37 +0200)]
added visual studio project file