351f9114b0
Relevant patches lifted from the `release-1.6` branch of my Julia fork: https://git.sr.ht/~ninjin/julia-nix/tree/release-1.6
27 lines
1.3 KiB
Diff
27 lines
1.3 KiB
Diff
From b20357fb1044d2c100172b1d5cbdf6c6d9bd3590 Mon Sep 17 00:00:00 2001
|
|
From: Pontus Stenetorp <pontus@stenetorp.se>
|
|
Date: Thu, 8 Apr 2021 05:10:39 +0000
|
|
Subject: [PATCH 3/6] nix: Skip `chown` tests broken in sandbox
|
|
|
|
---
|
|
test/file.jl | 4 ++--
|
|
1 file changed, 2 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/test/file.jl b/test/file.jl
|
|
index bd4dd78f62..06fd4e49da 100644
|
|
--- a/test/file.jl
|
|
+++ b/test/file.jl
|
|
@@ -503,8 +503,8 @@ if !Sys.iswindows()
|
|
@test stat(file).gid == 0
|
|
@test stat(file).uid == 0
|
|
else
|
|
- @test_throws Base._UVError("chown($(repr(file)), -2, -1)", Base.UV_EPERM) chown(file, -2, -1) # Non-root user cannot change ownership to another user
|
|
- @test_throws Base._UVError("chown($(repr(file)), -1, -2)", Base.UV_EPERM) chown(file, -1, -2) # Non-root user cannot change group to a group they are not a member of (eg: nogroup)
|
|
+ @test_skip @test_throws Base._UVError("chown($(repr(file)), -2, -1)", Base.UV_EPERM) chown(file, -2, -1) # Non-root user cannot change ownership to another user
|
|
+ @test_skip @test_throws Base._UVError("chown($(repr(file)), -1, -2)", Base.UV_EPERM) chown(file, -1, -2) # Non-root user cannot change group to a group they are not a member of (eg: nogroup)
|
|
end
|
|
else
|
|
# test that chown doesn't cause any errors for Windows
|
|
--
|
|
2.29.3
|
|
|