aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Suppress warnings.akr2014-05-281-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* include/ruby/ruby.h: hide Symbol internalsnormal2014-05-283-7/+14
| | | | | | | | | | This is too new to be a compatibility problem. * include/ruby/ruby.h: Hide Symbol internals. (struct RSymbol): moved to internal.h (RSYMBOL): ditto git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/unixsocket.c (rsock_init_unixsock): Open a socketakr2014-05-285-99/+143
| | | | | | | | | after path length check. This fixes a fd leak by TestSocket_UNIXSocket#test_too_long_path. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46218 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-05-29svn2014-05-281-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Close fds.akr2014-05-281-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46216 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (test_flush_in_finalizer1): Useakr2014-05-282-1/+12
| | | | | | | | | ObjectSpace.each_object to close files. GC.start is not reliable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* No need to kill a thread.akr2014-05-281-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/imap.rb (Net::IMAP#initialize): Close the opened socket whenakr2014-05-283-44/+55
| | | | | | | | | | | any exception occur. This fixes a fd leak by IMAPTest#test_imaps_post_connection_check which start_tls_session() raises an exception. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46210 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (ossl_ssl_close): Fix sync_close to workakr2014-05-283-10/+30
| | | | | | | | | | when SSL is not started. This fix the fd leak by test_https_proxy_authentication in test/net/http/test_https_proxy.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46209 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* drbtest.rb: avoid leaking threadsnobu2014-05-281-0/+4
| | | | | | | * test/drb/drbtest.rb (test_06_timeout): clean up worker threads to avoid leaking threads. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46208 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/rake: avoid leaking threadsnobu2014-05-281-0/+1
| | | | | | | * test/rake/test_rake_task.rb (teardown): clean up thread pool to avoid leaking threads. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46207 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/rake: avoid leaking threadsnobu2014-05-283-0/+11
| | | | | | | | | | | * 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
* eval_intern.h: suppress warning by gcc 4.6nobu2014-05-281-1/+1
| | | | | | | * 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
* test_socket.rb: ignore interface without addressnobu2014-05-281-0/+1
| | | | | | | * 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
* [DOC] Typo in change log [ci skip]zzak2014-05-281-1/+1
| | | | | | | | 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
* localeinit.c: fallback filesystem encoding to UTF-8nobu2014-05-281-0/+3
| | | | | | | * 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
* test_dir_m17n.rb: assert_raw_file_namenobu2014-05-281-4/+4
| | | | | | | * 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
* envutil.rb: connect caller to backtracenobu2014-05-281-0/+3
| | | | | | | * 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
* test_thread.rb: move thread switch testnobu2014-05-282-8/+20
| | | | | | | | | | * 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
* vm.c: remove rb_vm_living_threads_foreach functionnormal2014-05-285-152/+130
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* signal: remove window for SignalException on IGNOREnormal2014-05-282-1/+20
| | | | | | | | | * 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
* Use Tempfile#close!.akr2014-05-271-3/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46193 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/tempfile.rb (Tempfile#inspect): Show "(closed)" if the tempfileakr2014-05-272-1/+10
| | | | | | | | is closed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46191 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/lib/minitest/unit.rb: Use Tempfile#close! instead ofakr2014-05-275-9/+18
| | | | | | | | | | | | 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
* Avoid a shadowing warning.akr2014-05-271-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 2014-05-28svn2014-05-271-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/ftp.rb (transfercmd): Close TCP server socket even if anakr2014-05-272-14/+22
| | | | | | | | exception occur. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46182 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/cgi/core.rb: Use Tempfile#close(true) instead of Tempfile#unlinkakr2014-05-273-5/+10
| | | | | | | | to close file descriptors. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parallel.rb: do not split messagesnobu2014-05-271-1/+2
| | | | | | | * 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
* parse.y: refine error messagenobu2014-05-273-0/+24
| | | | | | | * 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
* * test/rexml: Avoid fd leaks.akr2014-05-2711-113/+142
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Indent.kou2014-05-272-187/+191
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46177 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_document.rb: Wrap by REXMLTests module.kou2014-05-272-1/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46176 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_encoding_2.rb: Remove a needless file.kou2014-05-272-59/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46175 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/test_contrib.rb: Indent.kou2014-05-2736-4966/+4970
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46174 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ifaddr.c (ifaddr_inspect_flags): support IFF_SIMPLEX.naruse2014-05-272-0/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46173 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use Socket.getifaddrs to show interface names and so onnaruse2014-05-271-7/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46172 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rexml/: Use REXMLTests as wrapping module for REXML tests.kou2014-05-2740-39/+47
| | | | | | | | | | 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
* * test/rexml/test_comment.rb: Remove needless REXML module wrapping.kou2014-05-272-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/openssl/test_pkcs7.rb: Fix inverted expected and actual values.kou2014-05-272-6/+10
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_io.rb (test_flush_in_finalizer1): some opened fds areusa2014-05-272-2/+8
| | | | | | | 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
* * tool/merger.rb: unlink temporary file explicitly.usa2014-05-271-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46167 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Wrap REXML test classes by REXML module.akr2014-05-2739-3/+78
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46166 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_autoclose_p): Don't raise on frozen IO.akr2014-05-274-8/+21
| | | | | | | | * 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
* * test/openssl/test_pair.rb: Modify TestSSL#test_read_and_writehsbt2014-05-273-4/+18
| | | | | | | 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
* * remove trailing spaces.svn2014-05-271-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46163 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/openssl/test_pkcs7.rb: Add tests for PKCS7#type= and add_data.hsbt2014-05-272-0/+146
| | | | | | [Feature #7399][ruby-core:49565] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/openssl/test_hmac.rb (test_binary_update): Added Test forhsbt2014-05-272-0/+14
| | | | | | 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
* * test/runner.rb: fixed randomly test failure.hsbt2014-05-272-0/+6
| | | | | | [Bug #6573][ruby-core:45563] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46160 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_timeout.rb (test_timeout): inverted test condition.hsbt2014-05-272-4/+9
| | | | | | [Bug #8523] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46159 b2dd03c8-39d4-4d8f-98ff-823fe69b080e