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
2086e1ba
Commit
2086e1ba
authored
Jan 11, 2013
by
Carlos Martín Nieto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: plug a couple of leaks
parent
3a5e8fae
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
1 deletions
+2
-1
tests-clar/diff/workdir.c
+1
-0
tests-clar/network/cred.c
+1
-1
No files found.
tests-clar/diff/workdir.c
View file @
2086e1ba
...
...
@@ -897,6 +897,7 @@ void test_diff_workdir__can_diff_empty_file(void)
/* baseline - make sure there are no outstanding diffs */
cl_git_pass
(
git_diff_tree_to_workdir
(
&
diff
,
g_repo
,
tree
,
&
opts
));
git_tree_free
(
tree
);
cl_assert_equal_i
(
2
,
(
int
)
git_diff_num_deltas
(
diff
));
git_diff_list_free
(
diff
);
...
...
tests-clar/network/cred.c
View file @
2086e1ba
...
...
@@ -23,5 +23,5 @@ void test_network_cred__stock_userpass_validates_that_method_is_allowed(void)
cl_git_fail
(
git_cred_userpass
(
&
cred
,
NULL
,
0
,
&
payload
));
cl_git_pass
(
git_cred_userpass
(
&
cred
,
NULL
,
GIT_CREDTYPE_USERPASS_PLAINTEXT
,
&
payload
));
git__
free
(
cred
);
cred
->
free
(
cred
);
}
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