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
353e9916
Commit
353e9916
authored
Nov 10, 2012
by
nulltoken
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tests: Add missing assertions
parent
8a328cf4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
tests-clar/stash/save.c
+3
-3
No files found.
tests-clar/stash/save.c
View file @
353e9916
...
...
@@ -246,8 +246,8 @@ void test_stash_save__cannot_stash_when_there_are_no_local_change(void)
* 'what' and 'who' are being committed.
* 'when' remain untracked.
*/
git_index_add_from_workdir
(
index
,
"what"
);
git_index_add_from_workdir
(
index
,
"who"
);
cl_git_pass
(
git_index_add_from_workdir
(
index
,
"what"
)
);
cl_git_pass
(
git_index_add_from_workdir
(
index
,
"who"
)
);
cl_git_pass
(
git_index_write
(
index
));
commit_staged_files
(
&
commit_oid
,
index
,
signature
);
git_index_free
(
index
);
...
...
@@ -356,7 +356,7 @@ void test_stash_save__can_stage_normal_then_stage_untracked(void)
void
test_stash_save__including_untracked_without_any_untracked_file_creates_an_empty_tree
(
void
)
{
p_unlink
(
"stash/when"
);
cl_git_pass
(
p_unlink
(
"stash/when"
)
);
assert_status
(
"what"
,
GIT_STATUS_WT_MODIFIED
|
GIT_STATUS_INDEX_MODIFIED
);
assert_status
(
"how"
,
GIT_STATUS_INDEX_MODIFIED
);
...
...
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