ruby-changes:18964
From: kosaki <ko1@a...>
Date: Tue, 1 Mar 2011 20:56:14 +0900 (JST)
Subject: [ruby-changes:18964] Ruby:r30998 (trunk): * test/ruby/test_system.rb (TestSystem#test_system_at):
kosaki 2011-03-01 20:56:06 +0900 (Tue, 01 Mar 2011) New Revision: 30998 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=30998 Log: * test/ruby/test_system.rb (TestSystem#test_system_at): remove tests for [bug#4396]. because we decided to reject this ticket. Modified files: trunk/ChangeLog trunk/test/ruby/test_system.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 30997) +++ ChangeLog (revision 30998) @@ -1,3 +1,9 @@ +Tue Mar 1 20:51:57 2011 KOSAKI Motohiro <kosaki.motohiro@g...> + + * test/ruby/test_system.rb (TestSystem#test_system_at): + remove tests for [bug#4396]. because we decided to reject this + ticket. + Tue Mar 1 19:46:19 2011 Tadayoshi Funaba <tadf@d...> * test/date/{test_date.rb,test_date_attr.rb}: [ruby-dev:43280] Index: test/ruby/test_system.rb =================================================================== --- test/ruby/test_system.rb (revision 30997) +++ test/ruby/test_system.rb (revision 30998) @@ -91,23 +91,13 @@ def test_system_at if /mswin|mingw/ =~ RUBY_PLATFORM bug4393 = '[ruby-core:35218]' - bug4396 = '[ruby-core:35227]' # @ + builtin command assert_equal("foo\n", `@echo foo`, bug4393); assert_equal("foo\n", `@@echo foo`, bug4393); assert_equal("@@foo\n", `@@echo @@foo`, bug4393); - # "" + @ + built-in - assert_equal("@@foo\n", `"echo" @@foo`, bug4396); - assert_equal("@@foo\n", `"@@echo" @@foo`, bug4396); - assert_equal("@@foo\n", `"@@echo @@foo"`, bug4396); - - # ^ + @ + built-in - assert_equal(false, system('^@echo foo'), bug4396); - assert_equal(false, system('"^@echo foo"'), bug4396); - assert_equal("@foo\n", `echo ^@foo`); - + # @ + non builtin command Dir.mktmpdir("ruby_script_tmp") {|tmpdir| tmpfilename = "#{tmpdir}/ruby_script_tmp.#{$$}" @@ -115,12 +105,7 @@ tmp.print "foo\nbar\nbaz\n@foo"; tmp.close - # @ + non builtin command assert_match(/\Abar\nbaz\n?\z/, `@@findstr "ba" #{tmpfilename.gsub("/", "\\")}`, bug4393); - - # "" + @ + non built-in - assert_match(/\Abar\nbaz\n?\z/, `"@@findstr ba" #{tmpfilename.gsub("/", "\\")}`, bug4396); - assert_match(/\A@foo\n?\z/, `"@@findstr @foo" #{tmpfilename.gsub("/", "\\")}`, bug4396); } end end -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/