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
This commit is contained in:
nobu 2013-01-27 04:04:26 +00:00
parent ad1715f0b9
commit d10cea5010

View File

@ -93,25 +93,25 @@ class TestSystem < Test::Unit::TestCase
end end
def test_system_at def test_system_at
if /mswin|mingw/ =~ RUBY_PLATFORM if /mswin|mingw/ =~ RUBY_PLATFORM
bug4393 = '[ruby-core:35218]' bug4393 = '[ruby-core:35218]'
# @ + builtin command # @ + builtin command
assert_equal("foo\n", `@echo foo`, bug4393); assert_equal("foo\n", `@echo foo`, bug4393);
assert_equal("foo\n", `@@echo foo`, bug4393); assert_equal("foo\n", `@@echo foo`, bug4393);
assert_equal("@@foo\n", `@@echo @@foo`, bug4393); assert_equal("@@foo\n", `@@echo @@foo`, bug4393);
# @ + non builtin command # @ + non builtin command
Dir.mktmpdir("ruby_script_tmp") {|tmpdir| Dir.mktmpdir("ruby_script_tmp") {|tmpdir|
tmpfilename = "#{tmpdir}/ruby_script_tmp.#{$$}" tmpfilename = "#{tmpdir}/ruby_script_tmp.#{$$}"
tmp = open(tmpfilename, "w") tmp = open(tmpfilename, "w")
tmp.print "foo\nbar\nbaz\n@foo"; tmp.print "foo\nbar\nbaz\n@foo";
tmp.close tmp.close
assert_match(/\Abar\nbaz\n?\z/, `@@findstr "ba" #{tmpfilename.gsub("/", "\\")}`, bug4393); assert_match(/\Abar\nbaz\n?\z/, `@@findstr "ba" #{tmpfilename.gsub("/", "\\")}`, bug4393);
} }
end end
end end
def test_system_redirect_win def test_system_redirect_win