summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-08 00:00:12 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-05-08 00:00:12 +0000
commite8ec23b1c09d2b62698f06552e3cadd75f69a9a7 (patch)
tree2bc96519cd861ad0157a9c3af352c308c458d526 /test
parentd7a9f591083547865634f2ae2f138b2d89b04c5b (diff)
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')
-rw-r--r--test/ruby/test_io.rb8
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