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
7445d510
Unverified
Commit
7445d510
authored
Mar 01, 2023
by
Edward Thomson
Committed by
GitHub
Mar 01, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #6513 from libgit2/ethomson/util_test_root
fs_path: let root run the ownership tests
parents
c59d519c
5c1d7649
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletions
+5
-1
tests/util/path.c
+5
-1
No files found.
tests/util/path.c
View file @
7445d510
...
...
@@ -2,6 +2,10 @@
#include "futils.h"
#include "fs_path.h"
#ifndef GIT_WIN32
# include <unistd.h>
#endif
static
char
*
path_save
;
void
test_path__initialize
(
void
)
...
...
@@ -757,7 +761,7 @@ void test_path__validate_current_user_ownership(void)
cl_git_fail
(
git_fs_path_owner_is_current_user
(
&
is_cur
,
"c:
\\
path
\\
does
\\
not
\\
exist"
));
#else
cl_git_pass
(
git_fs_path_owner_is_current_user
(
&
is_cur
,
"/"
));
cl_assert_equal_i
(
is_cur
,
0
);
cl_assert_equal_i
(
is_cur
,
(
geteuid
()
==
0
)
);
cl_git_fail
(
git_fs_path_owner_is_current_user
(
&
is_cur
,
"/path/does/not/exist"
));
#endif
...
...
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