libgit2/tests
Russell Belfer 854eccbb2d Clean up GIT_UNUSED macros on all platforms
It turns out that commit 31e9cfc4cbcaf1b38cdd3dbe3282a8f57e5366a5
did not fix the GIT_USUSED behavior on all platforms.  This commit
walks through and really cleans things up more thoroughly, getting
rid of the unnecessary stuff.

To remove the use of some GIT_UNUSED, I ended up adding a couple
of new iterators for hashtables that allow you to iterator just
over keys or just over values.

In making this change, I found a bug in the clar tests (where we
were doing *count++ but meant to do (*count)++ to increment the
value).  I fixed that but then found the test failing because it
was not really using an empty repo.  So, I took some of the code
that I wrote for iterator testing and moved it to clar_helpers.c,
then made use of that to make it easier to open fixtures on a
per test basis even within a single test file.
2012-03-02 15:51:55 -08:00
..
resources Add tests and fix bugs for diff whitespace options 2012-03-02 15:49:29 -08:00
.gitignore Fix Makefile to correctly handle 'make -j4 test' 2008-11-03 18:42:54 -08:00
NAMING status: get blob object id of file on disk 2011-07-09 13:49:50 +02:00
t00-core.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
t01-data.h Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t01-rawobj.c util: add git__fromhex() 2011-12-28 20:25:29 +01:00
t03-data.h What the fuck was this doing in src? 2011-07-11 19:42:21 +02:00
t03-objwrite.c Move path related functions from fileops to path 2012-01-17 15:49:47 -08:00
t04-commit.c Plug a bunch of leaks 2011-11-28 21:08:29 +01:00
t05-revwalk.c cleanup: remove trailing spaces 2011-07-01 18:02:56 +02:00
t06-index.c filebuf: add GIT_FILEBUF_INIT and protect multiple opens and cleanups 2011-11-22 01:53:56 +01:00
t07-hashtable.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
t08-tag.c Plug a bunch of leaks 2011-11-28 21:08:29 +01:00
t09-tree.c Rename all _close methods 2011-11-26 08:48:00 +01:00
t10-refs.c Move path related functions from fileops to path 2012-01-17 15:49:47 -08:00
t12-repo.c Move path related functions from fileops to path 2012-01-17 15:49:47 -08:00
t13-threads.c Fix MSVC warnings 2011-03-21 19:27:45 +02:00
t17-bufs.c Don't leak the buf when testing it 2011-07-12 18:19:56 +02:00
t18-status.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
test_helpers.c buffer: Unify git_fbuffer and git_buf 2012-02-27 05:30:07 +01:00
test_helpers.h Use git_buf for path storage instead of stack-based buffers 2011-12-07 23:08:15 -08:00
test_lib.c test: Properly show error messages 2011-06-28 21:10:51 +02:00
test_lib.h CMakefile: add -Wmissing-prototypes and fix warnings 2011-08-30 23:55:22 +03:00
test_main.c Clean up GIT_UNUSED macros on all platforms 2012-03-02 15:51:55 -08:00
tests.supp Add support for running the tests via valgrind 2009-10-13 16:23:54 +01:00