aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Pärtel <martin.partel@gmail.com>2013-07-22 10:44:09 +0300
committerMartin Pärtel <martin.partel@gmail.com>2013-07-22 10:44:09 +0300
commitf69e67112af4b562396babd290cc99d912205aa3 (patch)
treec4d18ed6b05c135629c6c07ae03a559cf33d8525 /tests
parenta671fee206476696205256931378f275c6a975d1 (diff)
parent5c1d9492bfd5290865fad000de0b63cbab243896 (diff)
downloadbindfs-f69e67112af4b562396babd290cc99d912205aa3.tar.gz
Merge remote-tracking branch 'antage/master'
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 a78345b..26c7b20 100755
--- a/tests/test_bindfs.rb
+++ b/tests/test_bindfs.rb
@@ -258,6 +258,14 @@ testenv("--chmod-deny --chmod-allow-x") do
assert_exception(EPERM) { chmod(0700, 'mnt/dir') } # chmod on dir should not work
end
+testenv("--chmod-perms=g-w,o-rwx") do
+ touch('src/file')
+
+ chmod(0666, 'mnt/file')
+
+ assert { File.stat('src/file').mode & 0777 == 0640 }
+end
+
root_testenv("--map=nobody/root:@nogroup/@root") do
touch('src/file')
chown('nobody', 'nogroup', 'src/file')