Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
6fef1ab3
Commit
6fef1ab3
authored
Jan 03, 2013
by
Ben Straub
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Tests should clean up after themselves
parent
7761ce21
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
14 additions
and
0 deletions
+14
-0
tests-clar/core/env.c
+2
-0
tests-clar/index/tests.c
+1
-0
tests-clar/network/fetchlocal.c
+1
-0
tests-clar/odb/alternates.c
+5
-0
tests-clar/status/worktree.c
+5
-0
No files found.
tests-clar/core/env.c
View file @
6fef1ab3
...
...
@@ -122,6 +122,8 @@ void test_core_env__0(void)
}
}
#endif
cl_fixture_cleanup
(
*
val
);
}
git_buf_free
(
&
path
);
...
...
tests-clar/index/tests.c
View file @
6fef1ab3
...
...
@@ -246,6 +246,7 @@ void test_index_tests__add(void)
git_index_free
(
index
);
git_repository_free
(
repo
);
cl_fixture_cleanup
(
"myrepo"
);
}
void
test_index_tests__add_from_workdir_to_a_bare_repository_returns_EBAREPO
(
void
)
...
...
tests-clar/network/fetchlocal.c
View file @
6fef1ab3
...
...
@@ -33,6 +33,7 @@ void test_network_fetchlocal__complete(void)
git_strarray_free
(
&
refnames
);
git_remote_free
(
origin
);
git_repository_free
(
repo
);
cl_fixture_cleanup
(
"foo"
);
}
void
test_network_fetchlocal__partial
(
void
)
...
...
tests-clar/odb/alternates.c
View file @
6fef1ab3
...
...
@@ -11,8 +11,13 @@ static git_repository *repo;
void
test_odb_alternates__cleanup
(
void
)
{
size_t
i
;
git_buf_free
(
&
destpath
);
git_buf_free
(
&
filepath
);
for
(
i
=
0
;
i
<
ARRAY_SIZE
(
paths
);
i
++
)
cl_fixture_cleanup
(
paths
[
i
]);
}
static
void
init_linked_repo
(
const
char
*
path
,
const
char
*
alternate
)
...
...
tests-clar/status/worktree.c
View file @
6fef1ab3
...
...
@@ -446,6 +446,7 @@ void test_status_worktree__first_commit_in_progress(void)
git_index_free
(
index
);
git_repository_free
(
repo
);
cl_fixture_cleanup
(
"getting_started"
);
}
...
...
@@ -595,6 +596,7 @@ void test_status_worktree__bracket_in_filename(void)
git_index_free
(
index
);
git_repository_free
(
repo
);
cl_fixture_cleanup
(
"with_bracket"
);
}
void
test_status_worktree__space_in_filename
(
void
)
...
...
@@ -659,6 +661,7 @@ void test_status_worktree__space_in_filename(void)
git_index_free
(
index
);
git_repository_free
(
repo
);
cl_fixture_cleanup
(
"with_space"
);
}
static
const
char
*
filemode_paths
[]
=
{
...
...
@@ -769,6 +772,7 @@ void test_status_worktree__disable_pathspec_match(void)
);
git_repository_free
(
repo
);
cl_fixture_cleanup
(
"pathspec"
);
}
...
...
@@ -821,6 +825,7 @@ void test_status_worktree__new_staged_file_must_handle_crlf(void)
git_config_free
(
config
);
git_index_free
(
index
);
git_repository_free
(
repo
);
cl_fixture_cleanup
(
"getting_started"
);
}
void
test_status_worktree__line_endings_dont_count_as_changes_with_autocrlf
(
void
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment