aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_pstore.rb
diff options
context:
space:
mode:
authorshirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-04 12:45:31 +0000
committershirosaki <shirosaki@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-09-04 12:45:31 +0000
commit0dc94b8b3e6c9440c05f18387c7dc8207094d89a (patch)
treeedeedd0ca289b4f926f8ac494b4752279289ec6c /test/test_pstore.rb
parent4ef43fc02f9446da4eaa508c439d3caa1a244ebf (diff)
downloadruby-0dc94b8b3e6c9440c05f18387c7dc8207094d89a.tar.gz
test_pstore.rb: fix for timeout
* test/ruby/envutil.rb (EnvUtil#invoke_ruby): show Timeout::Error instead of IOError if the timeout has expired. * test/test_pstore.rb (PStoreTest#test_pstore_files_are_accessed_as_binary_files): increase timeout because this test is slow on Windows. [ruby-core:47402] [Bug #6965] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36900 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/test_pstore.rb')
-rw-r--r--test/test_pstore.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test_pstore.rb b/test/test_pstore.rb
index 1b93925b0b..ee662669ff 100644
--- a/test/test_pstore.rb
+++ b/test/test_pstore.rb
@@ -120,7 +120,7 @@ class PStoreTest < Test::Unit::TestCase
def test_pstore_files_are_accessed_as_binary_files
bug5311 = '[ruby-core:39503]'
n = 128
- assert_in_out_err(["-Eutf-8:utf-8", "-rpstore", "-", @pstore_file], <<-SRC, [bug5311], [], bug5311)
+ assert_in_out_err(["-Eutf-8:utf-8", "-rpstore", "-", @pstore_file], <<-SRC, [bug5311], [], bug5311, timeout: 15)
@pstore = PStore.new(ARGV[0])
(1..#{n}).each do |i|
@pstore.transaction {@pstore["Key\#{i}"] = "value \#{i}"}