skip readonly test on Windows (chmod, ...)
This commit is contained in:
@ -6,10 +6,14 @@ class CMDTEST_readonly < Cmdtest::Testcase
|
|||||||
include SelftestUtils
|
include SelftestUtils
|
||||||
|
|
||||||
def teardown
|
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
|
end
|
||||||
|
|
||||||
def test_readonly
|
def test_readonly
|
||||||
|
return if Cmdtest::Util.windows?
|
||||||
|
|
||||||
create_CMDTEST_foo [
|
create_CMDTEST_foo [
|
||||||
"cmd 'true.rb' do",
|
"cmd 'true.rb' do",
|
||||||
"end",
|
"end",
|
||||||
@ -31,4 +35,5 @@ class CMDTEST_readonly < Cmdtest::Testcase
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user