void-packages/srcpkgs/libgit2/patches/disable-test-validate_curre...

14 lines
598 B
Diff

diff --git a/tests/util/path.c b/tests/util/path.c
index 02ec42f..60f7d70 100644
--- a/tests/util/path.c
+++ b/tests/util/path.c
@@ -761,7 +761,7 @@ void test_path__validate_current_user_ownership(void)
cl_git_fail(git_fs_path_owner_is_current_user(&is_cur, "c:\\path\\does\\not\\exist"));
#else
cl_git_pass(git_fs_path_owner_is_current_user(&is_cur, "/"));
- cl_assert_equal_i(is_cur, (geteuid() == 0));
+ //cl_assert_equal_i(is_cur, (geteuid() == 0)); // xbps-src chroot belongs to $USER, not root
cl_git_fail(git_fs_path_owner_is_current_user(&is_cur, "/path/does/not/exist"));
#endif