libgit2/tests
Russell Belfer b5daae68a4 Allow git_buf_joinpath to accept self-joins
It was not safe for git_buf_joinpath to be used with a pointer
into the buf itself because a reallocation could invalidate
the input parameter that pointed into the buffer.  This patch
makes it safe to self join, at least for the leading input to
the join, which is the common "append" case for self joins.

Also added unit tests to explicitly cover this case.

This should actually fix #511
2011-12-14 14:31:06 -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 Allow git_buf_joinpath to accept self-joins 2011-12-14 14:31:06 -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