summaryrefslogtreecommitdiff
path: root/tests-clay/clay_main.c
diff options
context:
space:
mode:
authorVicent Martí <tanoku@gmail.com>2011-12-25 00:22:20 +0100
committerVicent Martí <tanoku@gmail.com>2011-12-25 00:22:20 +0100
commitfa51565625902291f278d41c9254f8ab38bd916d (patch)
tree73ec7530f3b8bd6395ce1ef63b5e24bb168c3490 /tests-clay/clay_main.c
parent1b8cbe8be82cd55b900453a6bea7d9068c39c825 (diff)
downloadlibgit2-fa51565625902291f278d41c9254f8ab38bd916d.tar.gz
refs: Fix double free
Includes relevant Clay test
Diffstat (limited to 'tests-clay/clay_main.c')
-rw-r--r--tests-clay/clay_main.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/tests-clay/clay_main.c b/tests-clay/clay_main.c
index d2c954e22..318e096b6 100644
--- a/tests-clay/clay_main.c
+++ b/tests-clay/clay_main.c
@@ -281,6 +281,9 @@ static const struct clay_func _clay_cb_odb_sorting[] = {
{"alternate_backends_sorting", &test_odb_sorting__alternate_backends_sorting},
{"basic_backends_sorting", &test_odb_sorting__basic_backends_sorting}
};
+static const struct clay_func _clay_cb_refs_crashes[] = {
+ {"double_free", &test_refs_crashes__double_free}
+};
static const struct clay_func _clay_cb_repo_getters[] = {
{"empty", &test_repo_getters__empty},
{"head_detached", &test_repo_getters__head_detached},
@@ -498,6 +501,12 @@ static const struct clay_suite _clay_suites[] = {
_clay_cb_odb_sorting, 2
},
{
+ "refs::crashes",
+ {NULL, NULL},
+ {NULL, NULL},
+ _clay_cb_refs_crashes, 1
+ },
+ {
"repo::getters",
{"initialize", &test_repo_getters__initialize},
{"cleanup", &test_repo_getters__cleanup},
@@ -529,8 +538,8 @@ static const struct clay_suite _clay_suites[] = {
}
};
-static size_t _clay_suite_count = 37;
-static size_t _clay_callback_count = 121;
+static size_t _clay_suite_count = 38;
+static size_t _clay_callback_count = 122;
/* Core test functions */
static void