libgit2/tests
Russell Belfer 97769280ba Use git_buf for path storage instead of stack-based buffers
This converts virtually all of the places that allocate GIT_PATH_MAX
buffers on the stack for manipulating paths to use git_buf objects
instead.  The patch is pretty careful not to touch the public API
for libgit2, so there are a few places that still use GIT_PATH_MAX.

This extends and changes some details of the git_buf implementation
to add a couple of extra functions and to make error handling easier.

This includes serious alterations to all the path.c functions, and
several of the fileops.c ones, too.  Also, there are a number of new
functions that parallel existing ones except that use a git_buf
instead of a stack-based buffer (such as git_config_find_global_r
that exists alongsize git_config_find_global).

This also modifies the win32 version of p_realpath to allocate whatever
buffer size is needed to accommodate the realpath instead of hardcoding
a GIT_PATH_MAX limit, but that change needs to be tested still.
2011-12-07 23:08:15 -08:00
..
resources tests: Add refs folder to the bad_tag.git repo 2011-11-26 08:48:01 +01: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 Use git_buf for path storage instead of stack-based buffers 2011-12-07 23:08:15 -08:00
t01-data.h Rewrite the unit testing suite 2011-02-02 02:15:25 +02:00
t01-rawobj.c global: Properly use git__ memory wrappers 2011-10-28 19:02:36 -07:00
t03-data.h What the fuck was this doing in src? 2011-07-11 19:42:21 +02:00
t03-objwrite.c Rename all _close methods 2011-11-26 08:48:00 +01: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 global: Properly use git__ memory wrappers 2011-10-28 19:02:36 -07: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 Use git_buf for path storage instead of stack-based buffers 2011-12-07 23:08:15 -08:00
t12-repo.c Use git_buf for path storage instead of stack-based buffers 2011-12-07 23:08:15 -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 Use git_buf for path storage instead of stack-based buffers 2011-12-07 23:08:15 -08:00
test_helpers.c Use git_buf for path storage instead of stack-based buffers 2011-12-07 23:08:15 -08: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 repository: Change ownership semantics 2011-11-26 08:37:08 +01:00
tests.supp Add support for running the tests via valgrind 2009-10-13 16:23:54 +01:00