make test work with recent FsSnapshot changes

This commit is contained in:
Johan Holmberg 2016-10-30 21:55:03 +01:00
parent 1af393872c
commit 9331f23065

View File

@ -15,7 +15,6 @@ class CMDTEST_readonly < Cmdtest::Testcase
"end",
"Dir.mkdir('a_subdir')",
"File.open('a_subdir/file1', 'w') {|f| f.puts 123}",
"File.chmod(0, 'a_subdir')",
]
cmd_cmdtest do
@ -24,6 +23,8 @@ class CMDTEST_readonly < Cmdtest::Testcase
]
end
File.chmod(0555, 'tmp-cmdtest-2/top/work/a_subdir')
cmd_cmdtest do
stderr_equal /Directory not empty/
exit_nonzero