ruby-changes:29743
From: usa <ko1@a...>
Date: Fri, 5 Jul 2013 16:58:24 +0900 (JST)
Subject: [ruby-changes:29743] usa:r41795 (trunk): * test/ruby/test_rubyoptions.rb: better approach.
usa 2013-07-05 16:58:14 +0900 (Fri, 05 Jul 2013) New Revision: 41795 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41795 Log: * test/ruby/test_rubyoptions.rb: better approach. Modified files: trunk/test/ruby/test_rubyoptions.rb Index: test/ruby/test_rubyoptions.rb =================================================================== --- test/ruby/test_rubyoptions.rb (revision 41794) +++ test/ruby/test_rubyoptions.rb (revision 41795) @@ -409,12 +409,13 @@ class TestRubyOptions < Test::Unit::Test https://github.com/ruby/ruby/blob/trunk/test/ruby/test_rubyoptions.rb#L409 def test_notfound notexist = "./notexist.rb" - rubybin = Regexp.quote(EnvUtil.rubybin) + rubybin = EnvUtil.rubybin.dup + rubybin.gsub!(%r(/), '\\') if /mswin|mingw/ =~ RUBY_PLATFORM + rubybin = Regexp.quote(rubybin) pat = Regexp.quote(notexist) bug1573 = '[ruby-core:23717]' assert_file.not_exist?(notexist) assert_in_out_err(["-r", notexist, "-ep"], "", [], /.* -- #{pat} \(LoadError\)/, bug1573) - rubybin.gsub!(%r(/), '\\\\') if /mswin|mingw/ =~ RUBY_PLATFORM assert_in_out_err([notexist], "", [], /#{rubybin}:.* -- #{pat} \(LoadError\)/, bug1573) end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/