diff options
author | Carlos Martín Nieto <carlosmn@github.com> | 2016-04-12 00:14:00 +0200 |
---|---|---|
committer | Carlos Martín Nieto <carlosmn@github.com> | 2016-04-12 00:14:00 +0200 |
commit | a2d3d2d3ace896bfc094ac665c2827d11b9977b7 (patch) | |
tree | ab23f78e63924afacb2379a0ef2d1a67e33cf80d /tests/iterator/workdir.c | |
parent | 0e00eecf83d8811e08024da3becf5159bc9d6226 (diff) | |
parent | bbd65ad27eb5763bf0e9da9ec5e4cb9ed1930c72 (diff) | |
download | libgit2-a2d3d2d3ace896bfc094ac665c2827d11b9977b7.tar.gz |
Merge pull request #3738 from ethomson/test_as_root
tests: skip the unreadable file tests as root
Diffstat (limited to 'tests/iterator/workdir.c')
-rw-r--r-- | tests/iterator/workdir.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/iterator/workdir.c b/tests/iterator/workdir.c index c8f795a0d..28fcc0d23 100644 --- a/tests/iterator/workdir.c +++ b/tests/iterator/workdir.c @@ -673,6 +673,11 @@ void test_iterator_workdir__skips_unreadable_dirs(void) if (!cl_is_chmod_supported()) return; +#ifndef GIT_WIN32 + if (geteuid() == 0) + cl_skip(); +#endif + g_repo = cl_git_sandbox_init("empty_standard_repo"); cl_must_pass(p_mkdir("empty_standard_repo/r", 0777)); |