summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-30 14:07:01 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-05-30 14:07:01 (GMT)
commit77a8772b11c59c50c2edbdd590aa0778bab2fe3a (patch)
tree39f893d24f52dc7ea97048c7cee8874e14e5454f /test
parent79fd02cd51aabe4afb30e556a5d3cd5ee3ef0cf1 (diff)
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
Diffstat (limited to 'test')
-rw-r--r--test/ruby/test_file_exhaustive.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/ruby/test_file_exhaustive.rb b/test/ruby/test_file_exhaustive.rb
index 27a4760..d9d9344 100644
--- a/test/ruby/test_file_exhaustive.rb
+++ b/test/ruby/test_file_exhaustive.rb
@@ -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)