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
81f73a87
Commit
81f73a87
authored
Aug 06, 2012
by
Vicent Marti
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: Open ODB on each test suite
parent
d8d28e2e
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
tests-clar/odb/foreach.c
+6
-0
No files found.
tests-clar/odb/foreach.c
View file @
81f73a87
...
...
@@ -11,6 +11,9 @@ void test_odb_foreach__cleanup(void)
{
git_odb_free
(
_odb
);
git_repository_free
(
_repo
);
_odb
=
NULL
;
_repo
=
NULL
;
}
static
int
foreach_cb
(
git_oid
*
oid
,
void
*
data
)
...
...
@@ -69,6 +72,9 @@ static int foreach_stop_cb(git_oid *oid, void *data)
void
test_odb_foreach__interrupt_foreach
(
void
)
{
nobj
=
0
;
cl_git_pass
(
git_repository_open
(
&
_repo
,
cl_fixture
(
"testrepo.git"
)));
git_repository_odb
(
&
_odb
,
_repo
);
cl_assert_equal_i
(
GIT_EUSER
,
git_odb_foreach
(
_odb
,
foreach_stop_cb
,
NULL
));
cl_assert
(
nobj
==
1000
);
}
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