skip readonly test on Windows (chmod, ...)
This commit is contained in:
parent
6a7bdbdfe4
commit
9156ee3a34
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user