libgit2/tests-clar/refs
Sascha Cunz 9094d30b93 Reset all static variables to NULL in clar's __cleanup
Without this change, any failed assertion in the second (or a later) test
inside a test suite has a chance of double deleting memory, resulting in
a heap corruption. See #1096 for details.

This leaves alone the test cases where we "just" use cl_git_sandbox_init()
and cl_git_sandbox_cleanup(). These methods already take good care to not
double delete a repository.

Fixes #1096
2012-11-23 11:41:56 +01:00
..
branches Reset all static variables to NULL in clar's __cleanup 2012-11-23 11:41:56 +01:00
reflog Reset all static variables to NULL in clar's __cleanup 2012-11-23 11:41:56 +01:00
crashes.c t10-refs.c ported. 2012-03-30 12:05:42 -07:00
create.c refs: propagate EEXISTS 2012-09-30 11:56:37 +02:00
delete.c Boom 2012-05-02 16:57:16 -07:00
foreachglob.c Reset all static variables to NULL in clar's __cleanup 2012-11-23 11:41:56 +01:00
isvalidname.c refs: cover more refname validity edge cases 2012-10-18 23:59:22 +02:00
list.c Tests: Add 3 tags to resources/testrepo. 2012-09-23 01:02:07 +02:00
listall.c refs: git_reference_listall -> git_reference_list 2012-05-18 01:26:16 +02:00
lookup.c refs: introduce git_reference_is_valid_name() 2012-09-25 07:49:15 +02:00
normalize.c refs: introduce git_reference_is_valid_name() 2012-09-25 07:49:15 +02:00
overwrite.c Update test suite 2012-05-02 16:14:30 -07:00
pack.c Boom 2012-05-02 16:57:16 -07:00
peel.c Reset all static variables to NULL in clar's __cleanup 2012-11-23 11:41:56 +01:00
read.c Reset all static variables to NULL in clar's __cleanup 2012-11-23 11:41:56 +01:00
rename.c refs: propagate EEXISTS upon renaming 2012-10-11 14:00:26 +02:00
revparse.c revparse: properly handle refnames containing a @ 2012-10-18 23:05:33 +02:00
unicode.c Reset all static variables to NULL in clar's __cleanup 2012-11-23 11:41:56 +01:00