1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

test_file_exhaustive.rb: writable open

* test/ruby/test_file_exhaustive.rb (test_flock_shared): open
  in writable mode for exclusive lock.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@55221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-05-30 14:07:01 +00:00
parent 79fd02cd51
commit 77a8772b11

View file

@ -1290,7 +1290,7 @@ class TestFileExhaustive < Test::Unit::TestCase
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)