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
3f096ca5
Commit
3f096ca5
authored
Oct 04, 2018
by
Gabriel DeBacker
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix comment style and update test code
parent
8ab11dd5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
tests/path/win32.c
+7
-4
No files found.
tests/path/win32.c
View file @
3f096ca5
...
...
@@ -129,7 +129,7 @@ void test_path_win32__absolute_from_relative(void)
#endif
}
void
test_canonicalize
(
const
wchar_t
*
in
,
const
wchar_t
*
expected
)
void
static
test_canonicalize
(
const
wchar_t
*
in
,
const
wchar_t
*
expected
)
{
#ifdef GIT_WIN32
git_win32_path
canonical
;
...
...
@@ -145,7 +145,7 @@ void test_canonicalize(const wchar_t *in, const wchar_t *expected)
#endif
}
void
test_path_git_win32_
_canonicalize_path
(
const
wchar_t
*
in
,
const
wchar_t
*
expected
)
void
static
test
_canonicalize_path
(
const
wchar_t
*
in
,
const
wchar_t
*
expected
)
{
#ifdef GIT_WIN32
git_win32_path
canonical
;
...
...
@@ -161,6 +161,11 @@ void test_path_git_win32__canonicalize_path(const wchar_t *in, const wchar_t *ex
#endif
}
void
test_path_win32__canonicalize_path
(
void
)
{
test_canonicalize_path
(
L"
\\\\
?
\\
UNC
\\
server
\\
C$
\\
folder"
,
L"
\\\\
server
\\
C$
\\
folder"
);
}
void
test_path_win32__canonicalize
(
void
)
{
#ifdef GIT_WIN32
...
...
@@ -202,8 +207,6 @@ void test_path_win32__canonicalize(void)
test_canonicalize
(
L"
\\\\
server
\\\\
share
\\\\
foo
\\\\
bar"
,
L"
\\\\
server
\\
share
\\
foo
\\
bar"
);
test_canonicalize
(
L"
\\\\
server
\\
share
\\
..
\\
foo"
,
L"
\\\\
server
\\
foo"
);
test_canonicalize
(
L"
\\\\
server
\\
..
\\
..
\\
share
\\
.
\\
foo"
,
L"
\\\\
server
\\
share
\\
foo"
);
test_path_git_win32__canonicalize_path
(
L"
\\\\
?
\\
UNC
\\
server
\\
C$
\\
folder"
,
L"
\\\\
server
\\
C$
\\
folder"
);
#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