aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rwxr-xr-xtests/test_bindfs.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_bindfs.rb b/tests/test_bindfs.rb
index f184880..54801e2 100755
--- a/tests/test_bindfs.rb
+++ b/tests/test_bindfs.rb
@@ -194,6 +194,14 @@ root_testenv("--chown-deny") do
chown(nil, 'nogroup', 'mnt/file')
end
+root_testenv("--mirror=root") do
+ touch('src/file')
+ chown('nobody', 'nogroup', 'src/file')
+
+ assert { File.stat('mnt/file').uid == 0 }
+ assert { File.stat('mnt/file').gid == $nogroup_gid }
+end
+
testenv("--chmod-allow-x --chmod-ignore") do
touch('src/file')