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
4d00dfd4
Commit
4d00dfd4
authored
Mar 29, 2011
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace gitfo_unlink() calls with git_reference_delete() in refs related tests
parent
a796d24c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
tests/t10-refs.c
+3
-6
No files found.
tests/t10-refs.c
View file @
4d00dfd4
...
...
@@ -227,9 +227,8 @@ BEGIN_TEST(create0, "create a new symbolic reference")
must_pass
(
git_reference_resolve
(
&
resolved_ref
,
looked_up_ref
));
must_be_true
(
git_oid_cmp
(
&
id
,
git_reference_oid
(
resolved_ref
))
==
0
);
git_reference_delete
(
looked_up_ref
);
git_repository_free
(
repo
);
must_pass
(
gitfo_unlink
(
ref_path
));
/* TODO: replace with git_reference_delete() when available */
END_TEST
BEGIN_TEST
(
create1
,
"create a deep symbolic reference"
)
...
...
@@ -250,9 +249,8 @@ BEGIN_TEST(create1, "create a deep symbolic reference")
must_pass
(
git_reference_resolve
(
&
resolved_ref
,
looked_up_ref
));
must_be_true
(
git_oid_cmp
(
&
id
,
git_reference_oid
(
resolved_ref
))
==
0
);
git_reference_delete
(
looked_up_ref
);
git_repository_free
(
repo
);
must_pass
(
gitfo_unlink
(
ref_path
));
/* TODO: replace with git_reference_delete() when available */
END_TEST
BEGIN_TEST
(
create2
,
"create a new OID reference"
)
...
...
@@ -290,9 +288,8 @@ BEGIN_TEST(create2, "create a new OID reference")
must_pass
(
git_reference_lookup
(
&
looked_up_ref
,
repo
,
new_head
));
must_be_true
(
git_oid_cmp
(
&
id
,
git_reference_oid
(
looked_up_ref
))
==
0
);
git_reference_delete
(
looked_up_ref
);
git_repository_free
(
repo
);
must_pass
(
gitfo_unlink
(
ref_path
));
/* TODO: replace with git_reference_delete() when available */
END_TEST
static
const
char
*
ref_name
=
"refs/heads/other"
;
...
...
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