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
a1e5e268
Unverified
Commit
a1e5e268
authored
Apr 13, 2021
by
Edward Thomson
Committed by
GitHub
Apr 13, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5836 from tniessen/tests-var-name-list-c
tests: fix variable name in list.c
parents
9f295e21
52447c5c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests/object/tag/list.c
+3
-3
No files found.
tests/object/tag/list.c
View file @
a1e5e268
...
@@ -20,7 +20,7 @@ static void ensure_tag_pattern_match(git_repository *repo,
...
@@ -20,7 +20,7 @@ static void ensure_tag_pattern_match(git_repository *repo,
int
already_found
[
MAX_USED_TAGS
]
=
{
0
};
int
already_found
[
MAX_USED_TAGS
]
=
{
0
};
git_strarray
tag_list
;
git_strarray
tag_list
;
int
error
=
0
;
int
error
=
0
;
size_t
sucessfully_found
=
0
;
size_t
suc
c
essfully_found
=
0
;
size_t
i
,
j
;
size_t
i
,
j
;
cl_assert
(
data
->
expected_matches
<=
MAX_USED_TAGS
);
cl_assert
(
data
->
expected_matches
<=
MAX_USED_TAGS
);
...
@@ -42,12 +42,12 @@ static void ensure_tag_pattern_match(git_repository *repo,
...
@@ -42,12 +42,12 @@ static void ensure_tag_pattern_match(git_repository *repo,
if
(
!
already_found
[
j
]
&&
!
strcmp
(
data
->
expected_results
[
j
],
tag_list
.
strings
[
i
]))
if
(
!
already_found
[
j
]
&&
!
strcmp
(
data
->
expected_results
[
j
],
tag_list
.
strings
[
i
]))
{
{
already_found
[
j
]
=
1
;
already_found
[
j
]
=
1
;
sucessfully_found
++
;
suc
c
essfully_found
++
;
break
;
break
;
}
}
}
}
}
}
cl_assert_equal_i
((
int
)
sucessfully_found
,
(
int
)
data
->
expected_matches
);
cl_assert_equal_i
((
int
)
suc
c
essfully_found
,
(
int
)
data
->
expected_matches
);
exit:
exit:
git_strarray_dispose
(
&
tag_list
);
git_strarray_dispose
(
&
tag_list
);
...
...
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