summaryrefslogtreecommitdiff
path: root/tests/iterator
diff options
context:
space:
mode:
authorEdward Thomson <ethomson@github.com>2016-04-11 13:39:31 -0400
committerEdward Thomson <ethomson@github.com>2016-04-11 15:32:38 -0400
commitbbd65ad27eb5763bf0e9da9ec5e4cb9ed1930c72 (patch)
treeab23f78e63924afacb2379a0ef2d1a67e33cf80d /tests/iterator
parent0e00eecf83d8811e08024da3becf5159bc9d6226 (diff)
downloadlibgit2-bbd65ad27eb5763bf0e9da9ec5e4cb9ed1930c72.tar.gz
tests: skip the unreadable file tests as root
When running as root, skip the unreadable file tests, because, well, they're probably _not_ unreadable to root unless you've got some crazy NSA clearance-level honoring operating system shit going on.
Diffstat (limited to 'tests/iterator')
-rw-r--r--tests/iterator/workdir.c5
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));