diff options
author | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-08 00:00:12 +0000 |
---|---|---|
committer | kazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-05-08 00:00:12 +0000 |
commit | bcb8adc33e31bb0e837d663961b75b052fffe7e9 (patch) | |
tree | 2bc96519cd861ad0157a9c3af352c308c458d526 /test/ruby/test_io.rb | |
parent | f3acd6e790e51ef3099e03dc93f8cc28896855a5 (diff) | |
download | ruby-bcb8adc33e31bb0e837d663961b75b052fffe7e9.tar.gz |
Modify spaces [ci skip]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63353 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_io.rb')
-rw-r--r-- | test/ruby/test_io.rb | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/test/ruby/test_io.rb b/test/ruby/test_io.rb index 48ab0eef1f..377a225450 100644 --- a/test/ruby/test_io.rb +++ b/test/ruby/test_io.rb @@ -1859,7 +1859,6 @@ class TestIO < Test::Unit::TestCase def test_pos make_tempfile {|t| - open(t.path, IO::RDWR|IO::CREAT|IO::TRUNC, 0600) do |f| f.write "Hello" assert_equal(5, f.pos) @@ -2258,13 +2257,13 @@ class TestIO < Test::Unit::TestCase def test_reopen_inherit mkcdtmpdir { - system(EnvUtil.rubybin, '-e', <<"End") + system(EnvUtil.rubybin, '-e', <<-"End") f = open("out", "w") STDOUT.reopen(f) STDERR.reopen(f) system(#{EnvUtil.rubybin.dump}, '-e', 'STDOUT.print "out"') system(#{EnvUtil.rubybin.dump}, '-e', 'STDERR.print "err"') -End + End assert_equal("outerr", File.read("out")) } end @@ -2565,7 +2564,6 @@ End return unless defined?(Fcntl::F_GETFL) make_tempfile {|t| - fd = IO.sysopen(t.path, "w") assert_kind_of(Integer, fd) %w[r r+ w+ a+].each do |mode| @@ -2849,7 +2847,7 @@ __END__ end def test_fcntl_lock_linux - pad=0 + pad = 0 Tempfile.create(self.class.name) do |f| r, w = IO.pipe pid = fork do |