skip readonly test on Windows (chmod, ...)

This commit is contained in:
Johan Holmberg 2016-11-07 09:22:40 +01:00
parent 6a7bdbdfe4
commit 9156ee3a34

View File

@ -6,10 +6,14 @@ class CMDTEST_readonly < Cmdtest::Testcase
include SelftestUtils
def teardown
File.chmod(0755, 'tmp-cmdtest-2/top/work/a_subdir')
if ! Cmdtest::Util.windows?
File.chmod(0755, 'tmp-cmdtest-2/top/work/a_subdir')
end
end
def test_readonly
return if Cmdtest::Util.windows?
create_CMDTEST_foo [
"cmd 'true.rb' do",
"end",
@ -31,4 +35,5 @@ class CMDTEST_readonly < Cmdtest::Testcase
end
end
end