NAKAMURA Usaku
2403f9ac3a
Expand the timeout of `test_pstore_files_are_accessed_as_binary_files`
...
Sometimes causes timeout error on mswin CI
2019-08-05 12:52:14 +09:00
kazu
2a9dd6b818
lib/pstore.rb: Specify frozen_string_literal: true.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@57358 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-01-17 12:47:38 +00:00
nobu
d90b767d2b
test_pstore.rb: use queues
...
* test/test_pstore.rb (PStoreTest#test_thread_safe): handshake by
queues, and reduce sleeping time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56283 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2016-09-28 14:12:33 +00:00
naruse
3e92b635fb
Add frozen_string_literal: false for all files
...
When you change this to true, you may need to add more tests.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53141 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2015-12-16 05:07:31 +00:00
akr
fb2008a73a
* test/lib/envutil.rb: Moved from test/ruby/.
...
* test/lib/find_executable.rb: Ditto.
* test/lib/memory_status.rb: Ditto.
* test/lib/test/unit.rb: require envutil.
* test/: Don't require envutil in test files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-13 16:05:37 +00:00
akr
1c01f22d93
Join threads.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-31 00:01:32 +00:00
usa
d6af2a2b21
* io.c, internal.h (rb_io_flush_raw): new function to select calling
...
fsync() (on Windows).
* io.c (rb_io_flush_raw): use above function.
* file.c (rb_file_truncate): use above function.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-15 11:53:41 +00:00
usa
a66d568524
* test/test_pstore.rb
...
(PStoreTest#test_pstore_files_are_accessed_as_binary_files): need more time.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-14 11:16:11 +00:00
usa
e74a9c0668
* test/test_pstore.rb
...
(PStoreTest#test_pstore_files_are_accessed_as_binary_files): changed because
vc10-x64 CI fails with timeout.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-08-14 05:59:22 +00:00
shirosaki
0dc94b8b3e
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
2012-09-04 12:45:31 +00:00
nobu
298258891d
use assert_equal, assert_match, and so on.
...
* test/fileutils/fileasserts.rb: use assert_equal, assert_match, and so on.
* test/ruby/enc/test_utf16.rb, test/ruby/enc/test_utf32.rb,
test/ruby/test_io_m17n.rb (assert_str_equal): ditto.
* test/rubygems/test_gem_remote_fetcher.rb
(assert_data_from_{server,proxy}): ditto.
* test/test_pstore.rb (test_thread_safe): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@35553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-05-07 01:23:07 +00:00
naruse
b8b5f5d437
Generate temporary file in tmpdir.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33988 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-08 14:52:13 +00:00
nobu
4e7c8bbe03
* lib/pstore.rb, test/test_pstore.rb: suppress warnings with -v.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-13 11:21:52 +00:00
nobu
f7081431f2
* lib/pstore.rb (PStore): always open in binary mode even if
...
default encodings are set. [Bug #5311 ] [ruby-core:39503]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-13 06:02:59 +00:00
nobu
3a47cf3395
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31573 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-15 11:55:52 +00:00
sorah
6ef956ab90
* lib/pstore.rb: Fix don't raise "nested transaction" when thread_safe
...
is true. Patch by Masaki Matsushita (Glass_saga). [ruby-dev:43337]
* test/test_pstore.rb: Test for above.
Patch by Masaki Matsushita (Glass_saga) [ruby-dev:43337]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31101 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-13 07:14:07 +00:00
sorah
e267617f3e
* lib/pstore.rb: Delete variable @transaction and fix #4474 . Patch by
...
Masaki Matsushita (Glass_saga).
* test/test_pstore.rb(test_thread_safe): Add test for #4474 .
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31050 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-03-07 14:03:41 +00:00
nobu
287a34ae0d
* {ext,lib,test}/**/*.rb: removed trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-06 03:56:38 +00:00
matz
1d63f4eead
* lib/pstore.rb: replaced by Hongli Lai's faster version.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@15948 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-04-10 07:12:41 +00:00