aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * ext/win32ole/win32ole.c (vtdate2rbtime): try to convert millisecondsuke2014-08-271-0/+8
| | | | | | | | | | of VT_DATE VARIANT to nsec of Time object. * test/win32ole/test_win32ole_variant.rb (test_conversion_dbl2date_with_msec): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47297 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_complex.rb: removed unreachable code.hsbt2014-08-272-182/+80
| | | | | | * test/ruby/test_rational.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47295 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_complex.rb: cherry-picked working assertions from r47251.hsbt2014-08-262-0/+8
| | | | | | * test/ruby/test_rational.rb: cherry-picked working assertions from r47263. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47291 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (rb_time_unmagnify_to_float): Avoid double rounding.akr2014-08-261-0/+6
| | | | | | | | | Reported by Tsuyoshi Sawada. https://bugs.ruby-lang.org/issues/10135#note-1 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47289 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* io.c: do not swallow exceptions at end of blocknobu2014-08-261-0/+9
| | | | | | | | * io.c (io_close): ignore only "closed stream" IOError and NoMethodError, do not swallow other exceptions at the end of block. [ruby-core:64463] [Bug #10153] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47288 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_range.rb: added workaround for VERBOSE message.hsbt2014-08-261-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47286 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_mathn.rb: added workaround for VERBOSE messages.hsbt2014-08-261-7/+9
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47285 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole.c(fole_s_connect, fole_initialize): raise asuke2014-08-252-0/+53
| | | | | | | | | | | security error with the tainted string object. * ext/win32ole/win32ole_event.c(ev_advise): ditto. * test/win32ole/test_win32ole.rb(test_s_new_exc_svr_tainted, test_s_new_exc_host_tainted): ditto. * test/win32ole/test_win32ole_event.rb(test_s_new_exc_tainted): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* uri/common.rb: use negative look-aheadnobu2014-08-251-0/+3
| | | | | | | | * lib/uri/common.rb (URI.decode_www_form_component): use negative look-ahead instead of nested repeat operators, to get rid of backtrack explosion. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_complex.rb: removed needless conditions.hsbt2014-08-242-159/+74
| | | | | | * test/ruby/test_rational.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47265 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_rational.rb: fixed indent.hsbt2014-08-241-6/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47264 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_rational.rb: remove commented-out code.hsbt2014-08-241-155/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47263 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* lib/benchmark.rb: speedup by reducing allocationsnormal2014-08-241-0/+5
| | | | | | | | | | * lib/benchmark.rb (module Benchmark): define BENCHMARK_CLOCK (realtime): use Process.clock_gettime(BENCHMARK_CLOCK) [Feature #10165] * test/benchmark/test_benchmark.rb (test_realtime_output): new test git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_complex.rb: removed commented-out code.hsbt2014-08-221-58/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47251 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_complex.rb: fixed broken tests. Math is nothsbt2014-08-221-28/+29
| | | | | | compatible CMath now. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47250 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32/test_console_attr.rb: reset attributesnobu2014-08-211-5/+4
| | | | | | | | | * ext/-test-/win32/console/attribute.c (console_set_attribute): set console attribute. * test/-ext-/win32/test_console_attr.rb (reset): reset attributes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47242 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* win32.c: manage reverse videonobu2014-08-211-0/+44
| | | | | | | | * win32/win32.c (constat_attr): manage reverse video internally since Windows console window does not manage it. based on the patch by white leaf in [ruby-dev:48483]. [Bug #10158] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47241 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* compar.c: use Module#to_snobu2014-08-211-1/+1
| | | | | | | * compar.c (rb_cmperr): use Module#to_s so that names in a message can be overridden by to_s. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47239 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_thread.rb: let main thread exit from Thread.newnobu2014-08-201-0/+1
| | | | | | | * test/ruby/test_thread.rb (test_main_thread_status_at_exit): let the main thread run to ensure exiting from Thread.new. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sprintf.c: fix conditionnobu2014-08-191-0/+1
| | | | | | | * sprintf.c (rb_str_format): fix condition to round. [ruby-core:64454] [Bug #10151] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47222 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* euckr-tbl.rb: euro and registered signsnobu2014-08-191-0/+8
| | | | | | | * enc/trans/euckr-tbl.rb (EUCKR_TO_UCS_TBL): add missing euro and registered signs. [ruby-core:64452] [Bug #10149] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47221 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* compar.c: preserve encodingsnobu2014-08-191-0/+4
| | | | | | | * compar.c (rb_cmperr): preserve encodings of arguments in the message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47220 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* thread.c: check initializednobu2014-08-192-0/+18
| | | | | | | * ext/thread/thread.c (get_array): check instance variables are initialized properly. [ruby-core:63826][Bug #10062] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47217 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* sprintf.c: rational 'f' formatnobu2014-08-181-0/+5
| | | | | | | * sprintf.c (rb_str_format): support rational 'f' format. [ruby-core:64382] [Bug #10136] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47214 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_time_tz.rb: has_lisbon_tznobu2014-08-181-1/+6
| | | | | | | * test/ruby/test_time_tz.rb (has_lisbon_tz): separate from has_right_tz. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_ruby_mode.rb: trivial refinementnobu2014-08-161-2/+3
| | | | | | | | | | * test/misc/test_ruby_mode.rb (run_emacs): ensure to remove a temporary file. * test/misc/test_ruby_mode.rb (assert_indent): show diff between expected and actual results. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47202 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_gem_ext_builder.rb: fix wrong skip conditionnobu2014-08-161-1/+1
| | | | | | | | * test/rubygems/test_gem_ext_builder.rb (test_build_extensions_extconf_bad): fix wrong skip condition by removing wrong expace, String#include? does not turn a string argument into a regexp. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47201 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* rake/backtrace.rb: exclude mere prefixnobu2014-08-161-1/+1
| | | | | | | * lib/rake/backtrace.rb (Rake::Backtrace): exclude mere prefix and exec_prefix, which match too much. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_io.rb: investigationnobu2014-08-141-1/+2
| | | | | | | * test/ruby/test_io.rb (test_readpartial_locktmp): check if the reader thread is alive before write. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47178 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: preserve encodingsnobu2014-08-131-0/+6
| | | | | | | | * parse.y (shadowing_lvar, warn_unused_var), (reg_named_capture_assign_iter): preserve encodings in warning messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47171 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_parse.rb: for warningsnobu2014-08-131-0/+14
| | | | | | * test/ruby/test_parse.rb (TestParse): add tests for parser warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47170 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* envutil.rb: fix argument ordernobu2014-08-131-1/+1
| | | | | | | * test/ruby/envutil.rb (Test::Test#assert_warning): fix expected and actual results order. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47169 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/irb.rb: Prevent irb from crashing when exception withhsbt2014-08-131-0/+14
| | | | | | | | nil backtrace is raised. [fix GH-434][ruby-core:58078][Bug #9063] * test/irb/test_raise_no_backtrace_exception.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/openssl/test_ssl_session.rb: fix indent.hsbt2014-08-131-26/+26
| | | | | | contributed from @spk. [fix GH-698] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47162 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb: enable to remove with non-owner directory.hsbt2014-08-121-0/+8
| | | | | | | [ruby-dev:45976] [Bug #6756] * test/fileutils/test_fileutils.rb: add testcase for #6756. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47150 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add timeoutnaruse2014-08-111-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47144 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_io.rb: fix tempfile leaksnobu2014-08-091-13/+15
| | | | | | | * test/ruby/test_io.rb (test_flush_in_finalizer2): cannot unlink opened file on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47116 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_syntax.rb: fix tempfile leaksnobu2014-08-091-2/+4
| | | | | | | * test/ruby/test_syntax.rb (test_must_ascii_compatible), (test_script_lines): ensure to close temporary files. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47115 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/minitest/test_minitest_unit.rb: removed obsoleted conditionhsbt2014-08-092-13/+3
| | | | | | | for Ruby 1.8. * test/ruby/test_time_tz.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/cgi/test_cgi_core.rb: removed obsoleted condition for Ruby 1.8.hsbt2014-08-094-92/+21
| | | | | | | | * test/cgi/test_cgi_header.rb: ditto. * test/cgi/test_cgi_multipart.rb: ditto. * test/cgi/test_cgi_tag_helper.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47110 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/open-uri.rb: remove needless condition for old ruby version.hsbt2014-08-081-3/+1
| | | | | | * test/open-uri/test_open-uri.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47103 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: fix invalid char in evalnobu2014-08-071-1/+4
| | | | | | | | * parse.y (parser_yylex): fix invalid char in eval, should raise an syntax error too, as well as directly coded. [ruby-core:64243] [Bug #10117] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/win32ole/win32ole_typelib.c (foletypelib_version): returnsuke2014-08-071-1/+1
| | | | | | | | | | version string. * test/win32ole/test_win32ole_typelib.rb (test_version): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47096 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: preserve encodingnobu2014-08-061-0/+6
| | | | | | | * parse.y (parser_yyerror): preserve source code encoding in syntax error messages. [ruby-core:64228] [Bug #10114] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/set.rb (Set#replace): Check if an object given is enumerableknu2014-08-061-0/+6
| | | | | | | before clearing self. Reported by yui-knk. [GH-675] https://github.com/ruby/ruby/pull/675 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47085 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Implement Set#clone. [Fixes GH-661]knu2014-08-061-0/+22
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47083 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/net/http/generic_request.rb (Net::HTTP::GenericRequest#exec):naruse2014-08-051-2/+2
| | | | | | | | | | | | handle req['host'] in update_uri. * lib/net/http/generic_request.rb (Net::HTTP::GenericRequest#update_uri): use req['host'] if it is explicitly set. Even if URI is given, it is already used for the initial value of req['host']. Therefore overwritten value should be respected. [Bug #10054] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47077 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* suppress warningsnaruse2014-08-051-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/to_ruby.rb: backwards compatibility fortenderlove2014-08-051-0/+5
| | | | | | | hashes emitted by Syck. Github #198 * test/psych/test_hash.rb: test for change. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47069 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/win32ole/test_win32ole_record.rb: add for WIN32OLE_RECORDsuke2014-08-041-0/+313
| | | | | | | | test(need .NET Framework 3.5 to run test). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@47062 b2dd03c8-39d4-4d8f-98ff-823fe69b080e