From d10cea5010ee88cd4039908a3d02b10b79f01ea1 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 27 Jan 2013 04:04:26 +0000 Subject: test_system.rb: indent * test/ruby/test_system.rb (TestSystem#test_system): adjust indent git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38957 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/ruby/test_system.rb | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'test/ruby/test_system.rb') diff --git a/test/ruby/test_system.rb b/test/ruby/test_system.rb index d66f9018c1..b877538de8 100644 --- a/test/ruby/test_system.rb +++ b/test/ruby/test_system.rb @@ -93,25 +93,25 @@ class TestSystem < Test::Unit::TestCase end def test_system_at - if /mswin|mingw/ =~ RUBY_PLATFORM - bug4393 = '[ruby-core:35218]' + if /mswin|mingw/ =~ RUBY_PLATFORM + bug4393 = '[ruby-core:35218]' - # @ + builtin command - assert_equal("foo\n", `@echo foo`, bug4393); - assert_equal("foo\n", `@@echo foo`, bug4393); - assert_equal("@@foo\n", `@@echo @@foo`, bug4393); + # @ + builtin command + assert_equal("foo\n", `@echo foo`, bug4393); + assert_equal("foo\n", `@@echo foo`, bug4393); + assert_equal("@@foo\n", `@@echo @@foo`, bug4393); - # @ + non builtin command - Dir.mktmpdir("ruby_script_tmp") {|tmpdir| - tmpfilename = "#{tmpdir}/ruby_script_tmp.#{$$}" + # @ + non builtin command + Dir.mktmpdir("ruby_script_tmp") {|tmpdir| + tmpfilename = "#{tmpdir}/ruby_script_tmp.#{$$}" - tmp = open(tmpfilename, "w") - tmp.print "foo\nbar\nbaz\n@foo"; - tmp.close + tmp = open(tmpfilename, "w") + tmp.print "foo\nbar\nbaz\n@foo"; + tmp.close - assert_match(/\Abar\nbaz\n?\z/, `@@findstr "ba" #{tmpfilename.gsub("/", "\\")}`, bug4393); - } - end + assert_match(/\Abar\nbaz\n?\z/, `@@findstr "ba" #{tmpfilename.gsub("/", "\\")}`, bug4393); + } + end end def test_system_redirect_win -- cgit v1.2.3