From 8fed121f6e722bfb147bec343ab4b335340d83d3 Mon Sep 17 00:00:00 2001 From: Martin Pärtel Date: Fri, 2 Mar 2012 14:48:43 +0200 Subject: A test case for --mirror. --- tests/test_bindfs.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'tests') 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') -- cgit v1.2.3