diff options
Diffstat (limited to 'tests-clay')
-rw-r--r-- | tests-clay/object/tree/frompath.c | 3 | ||||
-rw-r--r-- | tests-clay/status/worktree.c | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/tests-clay/object/tree/frompath.c b/tests-clay/object/tree/frompath.c index 1effcb1db..651a86d86 100644 --- a/tests-clay/object/tree/frompath.c +++ b/tests-clay/object/tree/frompath.c @@ -23,9 +23,10 @@ void test_object_tree_frompath__cleanup(void) { git_tree_close(tree); git_repository_free(repo); + git_clearerror(); } -static void assert_tree_from_path(git_tree *root, const char *path, git_error expected_result, const char *expected_raw_oid) +static void assert_tree_from_path(git_tree *root, const char *path, int expected_result, const char *expected_raw_oid) { git_tree *containing_tree = NULL; diff --git a/tests-clay/status/worktree.c b/tests-clay/status/worktree.c index 1e8a5ddbc..7d120ecb5 100644 --- a/tests-clay/status/worktree.c +++ b/tests-clay/status/worktree.c @@ -92,6 +92,7 @@ void test_status_worktree__cleanup(void) _repository = NULL; cl_fixture_cleanup("status"); + git_clearerror(); } /** |