summaryrefslogtreecommitdiff
path: root/test
AgeCommit message (Collapse)Author
2012-02-06merge revision(s) r34399:kosaki
* vm_eval.c (vm_call0): should pass block to enumerators. patched by Kazuki Tsujimoto. [ruby-dev:44961][Bug #5731] * vm_eval.c (method_missing), vm_insnhelper.c (vm_call_method): ditto. patched by satoshi shiba. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34450 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06merge revision(s) 34232:naruse
------------------------------------------------------------------------ r34232 | naruse | 2012-01-08 08:04:20 +0900 (Sun, 08 Jan 2012) | 2 lines Cent OS 5.6 (2.6.18-238.19.1.el5xen) doesn't correctly work sendmsg with pktinfo for link-local ipv6 addresses ------------------------------------------------------------------------ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34447 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06merge revision(s) 34335,34337:naruse
* ext/date/date_parse.c: [ruby-core:42173]. * ext/date/date_strptime.c: moved detector of leftover. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34446 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06merge revision(s) 33956,33960,33961,33962:naruse
------------------------------------------------------------------------ r33956 | naruse | 2011-12-06 06:47:16 +0900 (Tue, 06 Dec 2011) | 1 line Comment out tests which fails with GDBM-DBM compat mode. ------------------------------------------------------------------------ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-06merge revision(s) 34072,34075,34082:naruse
* ext/date/date_core.c: [ruby-dev:45008]. * ext/date/date_core.c (wholenum): fix the type of the return value. * ext/date/date_core.c: uses to_integer instead. * test/date/test_switch_hitter.rb: added a test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-03merge revision(s) 34040,34051,34063,34389,34402,34403:naruse
------------------------------------------------------------------------ r34040 | naruse | 2011-12-14 14:42:34 +0900 (Wed, 14 Dec 2011) | 1 line Use pipe instead of $stdin.read. ------------------------------------------------------------------------ * test/ruby/envutil.rb (invoke_ruby): remove :timeout option before pass it to Kernel#spawn. * test/ruby/test_thread.rb (TestThreadGroup#test_thread_timer_and_interrupt): skip exit status assertion because we cannot get signal status on Windows. * win32/win32.c (CreateChild): create process group to receive the signal by GenerateConsoleCtrlEvent(). * win32/win32.c (kill): use CTRL_BREAK_EVENT instead of CTRL_C_EVENT if a process group is specified. CTRL_C_EVENT signal cannot be generated for process groups for the specification. [ruby-dev:45149] [Bug #5812] * test/ruby/envutil.rb (EnvUtil.invoke_ruby): yield also child pid in block form. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-02-03merge revision(s) r34038,34099:naruse
* thread_pthread.c (ubf_select): call rb_thread_wakeup_timer_thread() only when it is not timer_thread. [Bug #5757] [ruby-dev:44985] patched by Tomoyuki Chikanaga. * thread_pthread.c (ping_signal_thread_list): remove return value. * thread_pthread.c (check_signal_thread_list): add a new function to check if signal thread list is empty. * thread_pthread.c (thread_timer): check signal thread list after timer_thread_function(). main thread might be added into signal thread list during timer_thread_function(). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-27* lib/irb/completion.rb (IRB::InputCompletor::CompletionProc):nobu
ignore non-string name modules. [ruby-core:42244][Bug #5938] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-23merge revision(s) r34350:naruse
* encoding.c (rb_enc_compatible): fix segv on symbols. [ruby-core:42204] [Bug #5921] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-20* test/ruby/test_rubyoptions.rb (TestRubyOptions#test_set_program_name): ↵nobu
enabled the test too. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-16* lib/optparse.rb (Regexp): fix incorrect options when casting tonobu
a Regexp, and suppress encoding option warnings. https://github.com/ruby/ruby/pull/82 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-13merge revision(s) 33790:ayumin
* time.c (TIME_COPY_GMT): copy vtm.utc_offset and vtm.zone too. patch by Tomoyuki Chikanaga. [ruby-dev:44827] [Bug #5586] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34290 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-11merge revision(s) 34129:ayumin
* test/ruby/test_io.rb (TestIO#test_autoclose): Tempfile.new doesn't accept the block argument. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34273 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-10* test/ruby/test_enumerator.rb (test_nested_iteration): fix typo.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34262 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-03merge revision(s) 33343:ayumin
* test/rexml/test_sax.rb: add require rexml/document. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34200 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-03merge revision(s) 33468:kosaki
* ext/pty/pty.c (pty_check): should return nil until the child terminates or stops. [ruby-dev:44600] [Bug #2642] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34183 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-03merge revision(s) 33030:kosaki
* thread.c (update_coverage): skip coverage count up if the current line is out of the way. rb_sourceline() is unreliable when source code is big. [ruby-dev:44413] * test/coverage/test_coverage.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34181 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-28* doc/ChangeLog-1.9.3, test/gdbm/test_gdbm.rb: fixed mingw typo.nobu
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34149 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-18removing a file I accidentally added. :(tenderlove
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-15* array.c (rb_ary_reject_bang, rb_ary_delete_if): update rdoc.nobu
documentation from Thomas Leitner <t_leitner AT gmx.at> in [ruby-core:41616]. [Bug #5752] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34048 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-12-12merge revision(s) 33160,33381,33382,33383,33384,33385:tenderlove
* ext/psych/lib/psych.rb: update psych version. * ext/psych/psych.gemspec: generate new gemspec for new version. * ext/psych/lib/psych.rb: calling `yaml` rather than `to_yaml`. * ext/psych/lib/psych/nodes/node.rb: Rename `to_yaml` to just `yaml` in order to avoid YAML::ENGINE switching from replacing this method. * test/psych/helper.rb: fix tests for method name change. * test/psych/test_document.rb: ditto * test/psych/visitors/test_emitter.rb: ditto * ext/psych/lib/psych/scalar_scanner.rb: Match values against the floating point spec defined in YAML to avoid erronious parses. * test/psych/test_numeric.rb: corresponding test. * ext/psych/lib/psych/visitors/to_ruby.rb: ToRuby visitor can be constructed with a ScalarScanner. * ext/psych/lib/psych/visitors/yaml_tree.rb: ScalarScanner can be passed to the YAMLTree visitor. * ext/psych/lib/psych/visitors/to_ruby.rb: Define Regexp::NOENCODING for 1.9.2 backwards compatibility. * ext/psych/lib/psych/visitors/yaml_tree.rb: Fix Date string generation for 1.9.2 backwards compatibility. * ext/psych/lib/psych/visitors/yaml_tree.rb: emit strings tagged as ascii-8bit as binary in YAML. * test/psych/test_string.rb: corresponding test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@34017 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-30merge revision(s) r33613:naruse
* complex.c (nucomp_rationalize): fix function. [ruby-core:40667] [Bug #5546] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33907 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-29merge revision(s) 33158,33185,33186:naruse
* numeric.c (flo_round): substitute machine dependent magic number. * numeric.c (flo_round): Make Float#round round big values [bug #5272] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33898 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-11Skip too heavy test.naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33457 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-11merge revision(s) 33296:kosaki
* test/-ext-/old_thread_select/test_old_thread_select.rb: select() with timeout may return early in old Linux kernels with 250 Hz tickrate and no dynticks, so skip everything older than 2.6.32 (which has long term support). And, Make the timing assertions consistently use assert_operator with timing difference in error message Patch by Eric Wong. [Bug #5335] [ruby-core:39618] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33456 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-11merge revision(s) 33203:kosaki
------------------------------------------------------------------------ r33203 | naruse | 2011-09-06 04:11:21 -0400 (Tue, 06 Sep 2011) | 1 line Use assert_operator to show clear message. ------------------------------------------------------------------------ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33454 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-10merge revision(s) r33265:naruse
* lib/pstore.rb, test/test_pstore.rb: suppress warnings with -v. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-09Skip test_array_literal. [Backport #5369]naruse
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33445 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-09merges r33398 from trunk into ruby_1_9_3.yugui
-- * lib/time.rb (Time.strptime): use Time.at if d[:seconds] is set. Reported by Christopher Eberz. [ruby-core:39903] Bug #5399 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33444 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-09merges r33379 and r33395 from trunk into ruby_1_9_3.yugui
-- * gc.c (rb_gc_set_params): output GC parameter change messages only if -w/-v options are specified. these messages are output to stderr, not to stdout. [ruby-core:39795] [Bug #5380] * test/ruby/test_gc.rb (test_gc_parameter): add test for it. -- * gc.c (rb_gc_set_params): ruby_verbose can be Qnil, so use RTEST. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-09merges r33264 from trunk into ruby_1_9_3.yugui
-- * 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/branches/ruby_1_9_3@33440 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-08merge revision(s) 33364:kosaki
------------------------------------------------------------------------ r33364 | naruse | 2011-09-29 20:18:18 -0400 (Thu, 29 Sep 2011) | 1 line Fix wrong expectaion of r33363. ------------------------------------------------------------------------ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33437 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-08merge revision(s) 33363:kosaki
* array.c (ary_join_1): should not copy the encoding of non-string element after string element. [ruby-core:39776] [Bug #5379] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33436 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-08merge revision(s) 33386:kosaki
* lib/rubygems: Update to RubyGems 1.8.11. Move Deprecate into the Gem namespace. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-08merge revision(s) 33394:kosaki
------------------------------------------------------------------------ r33394 | naruse | 2011-10-03 21:25:04 -0400 (Mon, 03 Oct 2011) | 1 line Fix test of gc introduced in r33379. ------------------------------------------------------------------------ git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33434 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-08merge revision(s) 33379:kosaki
* gc.c (rb_gc_set_params): output GC parameter change messages only if -w/-v options are specified. these messages are output to stderr, not to stdout. [ruby-core:39795] [Bug #5380] * test/ruby/test_gc.rb (test_gc_parameter): add test for it. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33433 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-10-08merge revision(s) 33368:kosaki
* gc.c (add_heap_slots, init_heap): reset heaps_inc zero when heap slots are expanded by environment variable RUBY_HEAP_MIN_SLOTS. [ruby-core:39777] [Bug #5380] * test/ruby/test_gc.rb (test_gc_parameter): add test for it. * test/ruby/envutil.rb (assert_normal_exit): add :child_env option to enable pass environemnt variables to child process. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33432 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-27merge revision(s) 33333:kosaki
* ext/openssl/ossl_asn1.c: fix int_ossl_asn1_decode0_cons when being fed arbitrary string values. Clearly distinguish between the cases "universal, infinite and not a SEQUENCE or SET" and "universal SEQUENCE or SET, possibly infinite". Raise error for universal tags that are not infinite. * test/openssl/test_asn1.rb: add a test for this. Thanks to Hiroshi Yoshida for reporting this bug. [Bug #5363] [ruby-dev:44542] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33347 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-24merges r33291 from trunk into ruby_1_9_3.yugui
-- * parse.y (parser_data_type): inherit the core type in ripper so that checks in core would work. [ruby-core:39591] [Bug #5331] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-23* backport r33315 from trunk.emboss
* test/openssl/test_ssl_session.rb: execute test_session_exts_read only for OpenSSL versions >= 0.9.8k. Thanks, Eric Wong, for reporting this. [Bug #4961] [ruby-core:37726] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33316 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-23* backport r33311 from trunk.emboss
* test/openssl/test_ssl_session.rb: ensure server calls callbacks in test_ctx_server_session_cb. Thanks to Eric Wong for the patch. [Bug #5336] [ruby-core:39619] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-21* test/io/wait/test_io_wait.rb (TestIOWait#setup): of course, theusa
behavior of mingw is just same with mswin. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-15Revert r33276.usa
These changes are not the cause of Windows test failures. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33279 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-15Revert indentation improvement.naruse
r31061, r31065, r31076, r31308. Because of half baked. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-15Revert r32944 and r33092.naruse
Those commits break tests on Windows and no response. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33276 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-12* Backport r33231.kosaki
* thread.c (rb_thread_select): fix a typo to initialize efds properly. [Bug #5299] [ruby-core:39380] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33258 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-12merge revision(s) 33256:kosaki
* thread.c (rb_thread_select): fix to ignore an argument modification of rb_thread_fd_select(). based on a patch by Eric Wong. [Bug #5306] [ruby-core:39435] * thread.c (rb_fd_rcopy): New. for reverse fd copy. * test/-ext-/old_thread_select/test_old_thread_select.rb (test_old_select_false_positive): test for bug5306. * ext/-test-/old_thread_select/old_thread_select.c (fdset2array): New. convert fdsets to array. * ext/-test-/old_thread_select/old_thread_select.c (old_thread_select): return 'read', 'write', 'except' argument of rb_thread_select() to ruby script. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-11merges r33201 from trunk into ruby_1_9_3.yugui
-- * encoding.c (load_encoding): predefined encoding names are safe. [ruby-dev:44469] [Bug #5279] * transcode.c (load_transcoder_entry): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-07merge revision(s) 33171:kosaki
* io.c (argf_next_argv): open in default text mode. [ruby-core:39234] [Bug #5268] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-05merge revision(s) 33189:naruse
* test/rubygems/test_gem_security.rb (test_class_build_self_signed_cert): reset opt[:trust_dir] to apply temporary Gem.user_home. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_9_3@33190 b2dd03c8-39d4-4d8f-98ff-823fe69b080e