Skip to content

Commit 3f096ca

Browse files
committed
Fix comment style and update test code
1 parent 8ab11dd commit 3f096ca

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

tests/path/win32.c

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ void test_path_win32__absolute_from_relative(void)
129129
#endif
130130
}
131131

132-
void test_canonicalize(const wchar_t *in, const wchar_t *expected)
132+
void static test_canonicalize(const wchar_t *in, const wchar_t *expected)
133133
{
134134
#ifdef GIT_WIN32
135135
git_win32_path canonical;
@@ -145,7 +145,7 @@ void test_canonicalize(const wchar_t *in, const wchar_t *expected)
145145
#endif
146146
}
147147

148-
void test_path_git_win32__canonicalize_path(const wchar_t *in, const wchar_t *expected)
148+
void static test_canonicalize_path(const wchar_t *in, const wchar_t *expected)
149149
{
150150
#ifdef GIT_WIN32
151151
git_win32_path canonical;
@@ -161,6 +161,11 @@ void test_path_git_win32__canonicalize_path(const wchar_t *in, const wchar_t *ex
161161
#endif
162162
}
163163

164+
void test_path_win32__canonicalize_path(void)
165+
{
166+
test_canonicalize_path(L"\\\\?\\UNC\\server\\C$\\folder", L"\\\\server\\C$\\folder");
167+
}
168+
164169
void test_path_win32__canonicalize(void)
165170
{
166171
#ifdef GIT_WIN32
@@ -202,8 +207,6 @@ void test_path_win32__canonicalize(void)
202207
test_canonicalize(L"\\\\server\\\\share\\\\foo\\\\bar", L"\\\\server\\share\\foo\\bar");
203208
test_canonicalize(L"\\\\server\\share\\..\\foo", L"\\\\server\\foo");
204209
test_canonicalize(L"\\\\server\\..\\..\\share\\.\\foo", L"\\\\server\\share\\foo");
205-
206-
test_path_git_win32__canonicalize_path(L"\\\\?\\UNC\\server\\C$\\folder", L"\\\\server\\C$\\folder");
207210
#endif
208211
}
209212

0 commit comments

Comments
 (0)