Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix comment style and update test code
  • Loading branch information
GabeDeBacker committed Oct 4, 2018
commit 3f096ca56affd4870f6c3a5c1c045d2fb100de0d
11 changes: 7 additions & 4 deletions tests/path/win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
Expand All @@ -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
Expand Down Expand Up @@ -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
}

Expand Down