nobu
15da4792de
test/rake: avoid leaking threads
...
* test/rake/test_rake_multi_task.rb (teardown): clean up thread
pool to avoid leaking threads.
* test/rake/test_rake_task_with_arguments.rb (teardown): ditto.
* test/rake/test_rake_thread_pool.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46206 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-28 06:05:43 +00:00
nobu
ea9e8fedb3
eval_intern.h: suppress warning by gcc 4.6
...
* eval_intern.h (VAR_FROM_MEMORY, VAR_INITIALIZED): gcc 4.6 also
seems to warn false maybe-uninitialized.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-28 05:39:45 +00:00
nobu
391cad0cb3
test_socket.rb: ignore interface without address
...
* test/socket/test_socket.rb (test_udp_server): ignore interface
with no address assigned.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46204 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-28 05:11:05 +00:00
zzak
e3adb1d647
[DOC] Typo in change log [ci skip]
...
Although a mint flavored test suite sounds delicious,
I believe it's supposed to be minitest!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46203 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-28 04:34:22 +00:00
nobu
0a946cde01
localeinit.c: fallback filesystem encoding to UTF-8
...
* localeinit.c (Init_enc_set_filesystem_encoding): fallback to
UTF-8 on Mac OS X, just for convenience sake.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-28 04:27:45 +00:00
nobu
d85195712d
test_dir_m17n.rb: assert_raw_file_name
...
* test/ruby/test_dir_m17n.rb (assert_raw_file_name): rename to
show caller method in failure messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46199 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-28 04:20:35 +00:00
nobu
bd50aaf618
envutil.rb: connect caller to backtrace
...
* test/ruby/envutil.rb (assert_separately): append current caller
to backtrace show proper method name.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46198 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-28 04:20:31 +00:00
nobu
bd77dbc37a
test_thread.rb: move thread switch test
...
* test/ruby/test_thread.rb (test_switch_while_busy_loop): move
from test/test_timeout.rb. [Bug #1402 ]
* test/test_timeout.rb (test_timeout): no longer related to
[Bug #1402 ]. [Bug #8523 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46196 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-28 03:05:48 +00:00
normal
1142249713
vm.c: remove rb_vm_living_threads_foreach function
...
Shorter code with fewer callbacks and casts should be more readable.
* vm.c (rb_vm_living_threads_foreach): remove function
[ruby-core:62745]
* thread.c (terminate_i): remove
* thread.c (terminate_all): implement (inlines old terminate_i)
* thread.c (rb_thread_terminate_all): use terminate_all
* thread.c (rb_thread_fd_close_i): remove
* thread.c (rb_thread_fd_close): iterate inline
* thread.c (thread_list_i): remove
* thread.c (rb_thread_list): iterate inline
* thread.c (rb_thread_atfork_internal): iterate inline
* thread.c (terminate_atfork_i): update types to remove casts
* thread.c (terminate_atfork_before_exec_i): ditto
* thread.c (struct thgroup_list_params): remove definition
* thread.c (thgroup_list_i): remove
* thread.c (thgroup_list): iterate inline
* thread.c (check_deadlock_i): remove
* thread.c (debug_deadlock_check): implement (inlines check_deadlock_i)
* thread.c (debug_i): remove
* thread.c (rb_check_deadlock): iterate inline
* vm.c (vm_mark_each_thread_func): remove
* vm.c (rb_vm_mark): iterate inline
* vm_core.h (rb_vm_living_threads_remove): remove
* vm_trace.c (clear_trace_func_i): remove
* vm_trace.c (rb_clear_trace_func): iterate inline
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46195 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-28 01:48:11 +00:00
normal
e303785dde
signal: remove window for SignalException on IGNORE
...
* signal.c (signal_exec): ignore immediate cmd for SIG_IGN
* signal.c (trap_handler): set cmd to true for SIG_IGN
* signal.c (trap): handle nil and true values for oldcmd
[Bug #9835 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46194 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-28 00:53:11 +00:00
akr
9e9fcfeef4
Use Tempfile#close!.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 16:17:13 +00:00
akr
592c6ba3b3
* lib/tempfile.rb (Tempfile#inspect): Show "(closed)" if the tempfile
...
is closed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 16:03:35 +00:00
akr
9b612d382d
* test/lib/minitest/unit.rb: Use Tempfile#close! instead of
...
Tempfile#unlink to close file descriptors.
* test/openssl/test_config.rb: Ditto.
* test/ruby/test_io.rb: Ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46189 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 15:49:13 +00:00
akr
36276b6f40
Avoid a shadowing warning.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 15:15:54 +00:00
svn
dc4fa2f229
* 2014-05-28
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 15:15:14 +00:00
akr
569ca78e97
* lib/net/ftp.rb (transfercmd): Close TCP server socket even if an
...
exception occur.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 15:14:59 +00:00
akr
c968f908e1
* lib/cgi/core.rb: Use Tempfile#close(true) instead of Tempfile#unlink
...
to close file descriptors.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 14:51:08 +00:00
nobu
9ee98ff798
parallel.rb: do not split messages
...
* test/lib/test/unit/parallel.rb (Test::Unit::Worker#_run_suite):
get rid of splitting leak checking messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46180 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 14:43:15 +00:00
nobu
fe780f2997
parse.y: refine error message
...
* parse.y (parser_number_literal_suffix): refine error message for
extra dot and digits.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46179 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 14:06:48 +00:00
akr
3356c312cd
* test/rexml: Avoid fd leaks.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 13:45:04 +00:00
kou
3c908895ab
* test/rexml/test_document.rb: Indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 13:24:39 +00:00
kou
875f071500
* test/rexml/test_document.rb: Wrap by REXMLTests module.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 13:15:58 +00:00
kou
cb50e15e0d
* test/rexml/test_encoding_2.rb: Remove a needless file.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 13:12:32 +00:00
kou
ba3d2f4ac2
* test/rexml/test_contrib.rb: Indent.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 13:10:55 +00:00
naruse
313fa18033
* ext/socket/ifaddr.c (ifaddr_inspect_flags): support IFF_SIMPLEX.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 12:29:19 +00:00
naruse
c3ebc82832
use Socket.getifaddrs to show interface names and so on
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 12:29:08 +00:00
kou
28e78bf7f2
* test/rexml/: Use REXMLTests as wrapping module for REXML tests.
...
I avoid using the same module for library in test because
it provides "include REXML" environment in test. Normally,
users don't use REXML on "include REXML" environment. So I
don't want to write tests on "include REXML" environment.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 12:07:40 +00:00
kou
effcb9a712
* test/rexml/test_comment.rb: Remove needless REXML module wrapping.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 12:01:25 +00:00
kou
bef1b7f1ca
* test/openssl/test_pkcs7.rb: Fix inverted expected and actual values.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 11:57:41 +00:00
usa
f32a843fef
* test/ruby/test_io.rb (test_flush_in_finalizer1): some opened fds are
...
remain before GC, so unlink the tempfile is failed.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46168 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 11:28:34 +00:00
usa
abd92f0dec
* tool/merger.rb: unlink temporary file explicitly.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 10:34:43 +00:00
akr
13a8d735d9
Wrap REXML test classes by REXML module.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 10:21:10 +00:00
akr
1c35277c2b
* io.c (rb_io_autoclose_p): Don't raise on frozen IO.
...
* test/lib/minitest/unit.rb: IO#autoclose? may raise IOError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46165 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 10:09:55 +00:00
hsbt
6eb8acae90
* test/openssl/test_pair.rb: Modify TestSSL#test_read_and_write
...
to handle partial sysreads. [Bug #7398 ][ruby-core:49563]
* test/openssl/test_ssl.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 10:03:09 +00:00
svn
08e9b7d66c
* remove trailing spaces.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 09:48:30 +00:00
hsbt
bab55ed3f5
* test/openssl/test_pkcs7.rb: Add tests for PKCS7#type= and add_data.
...
[Feature #7399 ][ruby-core:49565]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 09:48:27 +00:00
hsbt
64826fa792
* test/openssl/test_hmac.rb (test_binary_update): Added Test for
...
HMAC signing with UTF-8 String. [Bug #7512 ][ruby-core:50559]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46161 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 09:33:54 +00:00
hsbt
ecd452a8b0
* test/runner.rb: fixed randomly test failure.
...
[Bug #6573 ][ruby-core:45563]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 08:34:11 +00:00
hsbt
563ee01100
* test/test_timeout.rb (test_timeout): inverted test condition.
...
[Bug #8523 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 08:00:19 +00:00
akr
dbd239a7aa
* test/lib/minitest/unit.rb: Show leaked file descriptors.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46156 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 03:24:52 +00:00
nobu
2e5d698538
io.c: no error on frozen IO
...
* io.c (rb_io_fileno, rb_io_inspect): non-modification does not
error on frozen IO. [ruby-dev:48241] [Bug #9865 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46151 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-27 02:12:59 +00:00
svn
bfd63b28b5
* 2014-05-27
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-26 15:00:28 +00:00
nobu
b90450d37c
insns.def: fix typo
...
* insns.def (defineclass): fix typo in the instruction comment.
[fix GH-618]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-26 15:00:23 +00:00
akr
bef7ff9c74
Use Tempfile.create instead of Tempfile.new.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46148 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-26 14:45:51 +00:00
nobu
42c7b5f09b
test/unit.rb: reduce error messages
...
* test/lib/test/unit.rb (non_options): reduce same error messages.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46147 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-26 14:36:40 +00:00
nobu
76e37aa636
ext_conf_builder.rb: fix tempfile leak
...
* lib/rubygems/ext/ext_conf_builder.rb (build): ensure to remove
temporary siteconf script.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46146 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-26 14:36:36 +00:00
nobu
9d630784b8
test/rdoc: avoid tempfile leaks
...
* test/rubygems/test_gem_package.rb: avoid tempfile leaks by using
`Tempfile.create` instead of `Tempfile.open`.
* test/rubygems/test_gem_request_set.rb: ditto.
* test/rubygems/test_gem_request_set_gem_dependency_api.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46145 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-26 14:36:26 +00:00
nobu
f14b11f2e6
test/rubygems: remove tempfiles
...
* test/rubygems/test_gem_package_tar_header.rb: remove tempfiles.
* test/rubygems/test_gem_package_tar_reader.rb: ditto.
* test/rubygems/test_gem_package_tar_reader_entry.rb (teardown):
ditto.
* test/rubygems/test_gem_package_tar_writer.rb (teardown): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-26 14:36:22 +00:00
nobu
c11f98eddc
test/rdoc: avoid tempfile leaks
...
* test/rdoc/test_rdoc_parser.rb (test_class_for_forbidden): avoid
tempfile leaks by using `Tempfile.create` instead of
`Tempfile.open`.
* test/rdoc/test_rdoc_rd_block_parser.rb (test_parse_include_subtree):
ditto.
* test/rdoc/test_rdoc_rdoc.rb (test_parse_file_encoding): ditto.
* test/rdoc/test_rdoc_rdoc.rb (test_parse_file_forbidden): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-26 13:33:06 +00:00
nobu
164fb03302
test/rdoc: remove tempfiles
...
* test/rdoc/test_rdoc_encoding.rb (teardown): remove tempfiles.
* test/rdoc/test_rdoc_markup_pre_process.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_c.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_changelog.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_markdown.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_rd.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_ruby.rb (teardown): ditto.
* test/rdoc/test_rdoc_parser_simple.rb (teardown): ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46142 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-26 13:33:01 +00:00