summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabriel DeBacker <6741868+GabeDeBacker@users.noreply.github.com>2018-10-04 13:03:25 -0700
committerGabriel DeBacker <6741868+GabeDeBacker@users.noreply.github.com>2018-10-04 13:03:25 -0700
commit3f096ca56affd4870f6c3a5c1c045d2fb100de0d (patch)
treef111ee97009ac2961180c0c9b75546bc84a3d600
parent8ab11dd53da0bba5152f1d755d92b9c436c71ff0 (diff)
downloadlibgit2-3f096ca56affd4870f6c3a5c1c045d2fb100de0d.tar.gz
Fix comment style and update test code
-rw-r--r--tests/path/win32.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/path/win32.c b/tests/path/win32.c
index 6065002af..36cb53767 100644
--- a/tests/path/win32.c
+++ b/tests/path/win32.c
@@ -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
}