ruby-changes:43147
From: nobu <ko1@a...>
Date: Mon, 30 May 2016 23:07:05 +0900 (JST)
Subject: [ruby-changes:43147] nobu:r55221 (trunk): test_file_exhaustive.rb: writable open
nobu 2016-05-30 23:07:01 +0900 (Mon, 30 May 2016) New Revision: 55221 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=55221 Log: test_file_exhaustive.rb: writable open * test/ruby/test_file_exhaustive.rb (test_flock_shared): open in writable mode for exclusive lock. Modified files: trunk/test/ruby/test_file_exhaustive.rb Index: test/ruby/test_file_exhaustive.rb =================================================================== --- test/ruby/test_file_exhaustive.rb (revision 55220) +++ test/ruby/test_file_exhaustive.rb (revision 55221) @@ -1290,7 +1290,7 @@ class TestFileExhaustive < Test::Unit::T https://github.com/ruby/ruby/blob/trunk/test/ruby/test_file_exhaustive.rb#L1290 end; assert_separately(["-rtimeout", "-", regular_file], "#{<<~begin}#{<<~"end;"}") begin - open(ARGV[0], "r") do |f| + open(ARGV[0], "r+") do |f| assert_raise(Timeout::Error) do Timeout.timeout(0.1) do f.flock(File::LOCK_EX) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/