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
390431c3
Commit
390431c3
authored
7 years ago
by
Adam Niedzielski
Committed by
Patrick Steinhardt
7 years ago
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
revwal: add failing test for walking with topo-sort
parent
dad3c319
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
0 deletions
+14
-0
tests/revwalk/basic.c
+14
-0
No files found.
tests/revwalk/basic.c
View file @
390431c3
...
...
@@ -331,6 +331,20 @@ void test_revwalk_basic__hide_then_push(void)
cl_assert_equal_i
(
i
,
0
);
}
void
test_revwalk_basic__topo_crash
(
void
)
{
git_oid
oid
;
git_oid_fromstr
(
&
oid
,
"5b5b025afb0b4c913b4c338a42934a3863bf3644"
);
revwalk_basic_setup_walk
(
NULL
);
git_revwalk_sorting
(
_walk
,
GIT_SORT_TOPOLOGICAL
);
cl_git_pass
(
git_revwalk_push
(
_walk
,
&
oid
));
cl_git_pass
(
git_revwalk_hide
(
_walk
,
&
oid
));
git_revwalk_next
(
&
oid
,
_walk
);
}
void
test_revwalk_basic__push_range
(
void
)
{
revwalk_basic_setup_walk
(
NULL
);
...
...
This diff is collapsed.
Click to expand it.
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