diff --git a/t/CMDTEST_readonly.rb b/t/CMDTEST_readonly.rb index 4774727..a18dd37 100644 --- a/t/CMDTEST_readonly.rb +++ b/t/CMDTEST_readonly.rb @@ -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