Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/libgit2.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'tests/repo/init.c')
-rw-r--r--tests/repo/init.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/repo/init.c b/tests/repo/init.c
index 52cf1577b..677c23891 100644
--- a/tests/repo/init.c
+++ b/tests/repo/init.c
@@ -249,15 +249,8 @@ void test_repo_init__detect_ignorecase(void)
void test_repo_init__detect_symlinks(void)
{
- struct stat st;
- bool no_symlinks;
-
- no_symlinks = (p_symlink("target", "link") < 0 ||
- p_lstat("link", &st) < 0 ||
- ! (S_ISLNK(st.st_mode)));
-
assert_config_entry_on_init(
- "core.symlinks", no_symlinks ? false : GIT_ENOTFOUND);
+ "core.symlinks", filesystem_supports_symlinks("link") ? GIT_ENOTFOUND : false);
}
void test_repo_init__detect_precompose_unicode_required(void)