summaryrefslogtreecommitdiff
path: root/tests/core
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@edwardthomson.com>2021-11-11 13:28:08 -0500
committerEdward Thomson <ethomson@edwardthomson.com>2021-11-11 17:31:43 -0500
commitca14942e19788bd01334af64554c3095f3ff0d4a (patch)
tree9a05a7224d87e45b3ba2ac88501c66e4f0149ab9 /tests/core
parent3f024b6d5439eda83d8bebc197db062c4d6bdfeb (diff)
downloadlibgit2-ca14942e19788bd01334af64554c3095f3ff0d4a.tar.gz
tests: declare functions statically where appropriate
Diffstat (limited to 'tests/core')
-rw-r--r--tests/core/copy.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/core/copy.c b/tests/core/copy.c
index 2b90fb6bf..b03d71083 100644
--- a/tests/core/copy.c
+++ b/tests/core/copy.c
@@ -45,7 +45,8 @@ void test_core_copy__file_in_dir(void)
cl_assert(!git_fs_path_isdir("an_dir"));
}
-void assert_hard_link(const char *path)
+#ifndef GIT_WIN32
+static void assert_hard_link(const char *path)
{
/* we assert this by checking that there's more than one link to the file */
struct stat st;
@@ -54,6 +55,7 @@ void assert_hard_link(const char *path)
cl_git_pass(p_stat(path, &st));
cl_assert(st.st_nlink > 1);
}
+#endif
void test_core_copy__tree(void)
{