[前][次][番号順一覧][スレッド一覧]

ruby-changes:18770

From: KOSAKI Motohiro <kosaki.motohiro@g...>
Date: Sat, 5 Feb 2011 17:06:16 +0900
Subject: [ruby-changes:18770] Re: Ruby:r30795 (trunk): Import RDoc 3.5.2

> --- test/rdoc/test_rdoc_options.rb revision 30794)
> +++ test/rdoc/test_rdoc_options.rb revision 30795)
> @@ -17,16 +17,26 @@
> end
>
> def test_check_files
> - kip "assumes UNIX permission model" if /mswin|mingw/ =~ RUBY_PLATFORM
> out, err = capture_io do
> Dir.mktmpdir do |dir|
> - ir.chdir dir do
> - ileUtils.touch 'unreadable'
> - ileUtils.chmod 0, 'unreadable'
> + egin
> + nreadable = nil # variable for windows
>
> - options.files = %w[nonexistent unreadable]
> + ir.chdir dir do
> + f RUBY_PLATFORM =~ /mswin|mingw/ then
> + nreadable = open 'unreadable'
> + ile.delete 'unreadable'
> + lse
> + ileUtils.touch 'unreadable'
> + ileUtils.chmod 0, 'unreadable'
> + nd

This code try to open nonexistent file and makes following error on windows.

 54) Error:
test_check_files(TestRDocOptions):
Errno::ENOENT: No such file or directory - unreadable
    C:/ruby/trunk/test/rdoc/test_rdoc_options.rb:27:in `block (3 levels) in test
_check_files'
    C:/ruby/trunk/test/rdoc/test_rdoc_options.rb:25:in `chdir'
    C:/ruby/trunk/test/rdoc/test_rdoc_options.rb:25:in `block (2 levels) in test
_check_files'
    C:/ruby/trunk/test/rdoc/test_rdoc_options.rb:21:in `block in test_check_file
s'
    C:/ruby/trunk/test/rdoc/test_rdoc_options.rb:20:in `test_check_files'
    ../test/runner.rb:18:in `<main>'

In other words, you introduced new test-all error.

[前][次][番号順一覧][スレッド一覧]

     18768 2011-02-05 15:21 [ko1@a...            ] Ruby:r30795 (trunk): Import RDoc 3.5.2  
->   18770 2011-02-05 17:06 ┗[kosaki.motohiro@g...]