aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * ext/bigdecimal/bigdecimal.c (BigMath_s_exp): Fix for the cases whenmrkn2013-06-251-5/+29
| | | | | | | | the argument x is not a BigDecimal. This change is based on the patch made by Garth Snyder. [Fix GH-332] https://github.com/ruby/ruby/pull/332 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41623 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rinda.rb: fix for unimplemented ifindex()shirosaki2013-06-241-6/+12
| | | | | | | | * test/rinda/test_rinda.rb (RingIPv6#prepare_ipv6): ifindex() function may not be implemented on Windows. We use another check for the case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_gdbm.rb: skip a test on Windowsshirosaki2013-06-241-0/+4
| | | | | | | | * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_nolock): skip a failing test on Windows because flock() implementation is different from Unix. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_gem_installer.rb: fix a test failureshirosaki2013-06-241-0/+1
| | | | | | | | * test/rubygems/test_gem_installer.rb (test_install_extension_flat): use ruby in build directory in case ruby is not installed. [ruby-core:53265] [Bug #8058] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bary_unpack_internal): Specialized unpacker implemented.akr2013-06-221-2/+27
| | | | | | | | | (bary_unpack): Support INTEGER_PACK_FORCE_GENERIC_IMPLEMENTATION. (rb_integer_unpack): Support INTEGER_PACK_FORCE_GENERIC_IMPLEMENTATION. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bary_pack): Supportakr2013-06-221-0/+21
| | | | | | | | | | | | INTEGER_PACK_FORCE_GENERIC_IMPLEMENTATION flag. Fix byte order and word order handling in code specialized for wordsize % SIZEOF_BDIGITS == 0. * internal.h (INTEGER_PACK_FORCE_GENERIC_IMPLEMENTATION): Defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Imported minitest 4.7.5 (r8724)ryan2013-06-221-14/+16
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bary_pack): Specialized packers implemented.akr2013-06-211-0/+76
| | | | | | | | | | | | | | | | | (HOST_BIGENDIAN_P): New macro. (ALIGNOF): New macro. (CLEAR_LOWBITS): New macro. (FILL_LOWBITS): New macro. (swap_bdigit): New macro. (bary_2comp): Returns an int. * internal.h (swap16): Moved from pack.c (swap32): Ditto. (swap64): Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_filehandler.rb: fix for non-NTFSnobu2013-06-211-1/+3
| | | | | | | * test/webrick/test_filehandler.rb (test_script_disclosure): Alternate Data Stream is available only on NTFS. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_filehandler.rb: reap zombienobu2013-06-211-1/+1
| | | | | | | * test/webrick/test_filehandler.rb (test_short_filename): use backtick to reap zombie, instead of leaving opened stream after reading. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_env.rb: fix testnobu2013-06-211-2/+8
| | | | | | | * test/ruby/test_env.rb (test_win32_blocksize): fix remained size, and delete added envvars. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41519 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_client.rb: load opensslnobu2013-06-201-0/+4
| | | | | | | * test/xmlrpc/test_client.rb: try loading openssl to fix autoloading constant. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41506 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (bary_unpack_internal): Return -2 when negative overflow.akr2013-06-201-0/+5
| | | | | | | | | (bary_unpack): Set the overflowed bit if an extra BDIGIT exists. (rb_integer_unpack): Set the overflowed bit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41494 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_sdbm.rb: only if SDBMnobu2013-06-201-1/+1
| | | | | | * test/sdbm/test_sdbm.rb (TestSDBM): test only if SDBM is loadable. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41489 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_fiber.rb: longer timeoutnobu2013-06-201-2/+2
| | | | | | | * test/ruby/test_fiber.rb (test_many_fibers): make timeout longer. 10sec is not sufficient. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41468 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* envutil.rb: refine messagenobu2013-06-201-1/+2
| | | | | | | * test/ruby/envutil.rb (invoke_ruby): refine message and skip innermost backtrace on timeout. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41467 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* envutil.rb: keyword argumentsnobu2013-06-201-16/+12
| | | | | | | | * test/ruby/envutil.rb (invoke_ruby, assert_normal_exit), (assert_in_out_err, assert_ruby_status, assert_separately): use keyword arguments so that optional parameters can be omitted. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41466 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* GC before fork to avoid spending too much time in timeout blocknaruse2013-06-201-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41464 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* collect zombiesnaruse2013-06-191-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_process.rb: redirect to nullnobu2013-06-191-2/+2
| | | | | | | | | * test/ruby/test_process.rb (test_no_curdir): since standard handles cannot close on Windows, redirect to null device. * test/ruby/test_process.rb (assert_fail_too_long_path): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Join the thread to collect zombiesnaruse2013-06-191-0/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41443 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_signal.rb: use standard fdsnobu2013-06-191-17/+13
| | | | | | | | * test/ruby/test_signal.rb (test_exit_action): use IO.popen and standard file descriptors instead of fd 3 and 4, which is not available on Windows. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41442 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_signal.rb: use SIGINT if needednobu2013-06-191-3/+4
| | | | | | | * test/ruby/test_signal.rb (test_kill_immediately_before_termination): use SIGINT if SIGUSR1 is not available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41441 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_pty.rb: reap zombienobu2013-06-191-0/+1
| | | | | | | * test/test_pty.rb (test_cloexec): reap zombie than leaving to detaching thread. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41427 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* drbtest.rb: DRbBasenobu2013-06-195-84/+45
| | | | | | | * test/drb/drbtest.rb (DRbBase): extract from DRbCore and DRbAry for setup_service and teardown. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_sdbm.rb: open_db_childnobu2013-06-191-39/+26
| | | | | | | * test/sdbm/test_sdbm.rb (TestSDBM#open_db_child): open the db in a child process and handshake using popen. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_gdbm.rb: open_db_childnobu2013-06-191-58/+36
| | | | | | | * test/gdbm/test_gdbm.rb (TestGDBM#open_db_child): open the db in a child process and handshake using popen. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_dbm.rb: no forknobu2013-06-191-9/+0
| | | | | | * test/dbm/test_dbm.rb (have_fork?): no longer used already. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rinda.rb: no forknobu2013-06-191-7/+0
| | | | | | * test/rinda/test_rinda.rb (have_fork?): no longer used already. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41422 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/testunit: reap zombienobu2013-06-193-33/+24
| | | | | | | | | | | * test/testunit/test_hideskip.rb (test_hideskip): reap zombie by reading with IO.popen instead of separated spawn and assert. * test/testunit/test_redefinition.rb (test_redefinition): ditto. * test/testunit/test_sorting.rb (test_sorting): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41421 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_rinda.rb: reap zombienobu2013-06-191-0/+2
| | | | | | * test/rinda/test_rinda.rb (test_take_bug_8215): reap zombie. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41420 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_gdbm.rb: reap zombienobu2013-06-191-1/+1
| | | | | | * test/gdbm/test_gdbm.rb (TestGDBM#have_fork): reap zombie git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_curses.rb: reap zombienobu2013-06-191-2/+7
| | | | | | | | * test/test_curses.rb (TestCurses#run_curses): reap zombie, since PTY.spawn with block does not wait the sub process but just detaches. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_io.rb: use assert_separatelynobu2013-06-191-12/+5
| | | | | | | * test/ruby/test_io.rb (test_cross_thread_close_stdio): use assert_separately instead of separated fork and assert. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41417 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_signal.rb: use assert_in_out_errnobu2013-06-191-43/+15
| | | | | | | * test/ruby/test_signal.rb (test_kill_immediately_before_termination): use assert_in_out_err instead of separated fork and assert. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/ruby: reap zombiesnobu2013-06-195-6/+19
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41415 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* envutil.rb: reap zombiesnobu2013-06-191-1/+8
| | | | | | * test/ruby/envutil.rb (EnvUtil#invoke_ruby): reap zombies. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41414 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test/runner.rb: reap zombiesnobu2013-06-191-0/+12
| | | | | | * test/runner.rb (Test::Unit::ZombieHunter#after_teardown): reap zombies. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_signal.rb: extra quotesnobu2013-06-191-1/+1
| | | | | | | * test/ruby/test_signal.rb (TestSignal#test_signal_process_group): remove extra quotes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (EnvUtil#rubybin): remove unnecessary unless expression.kazu2013-06-191-3/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_call_method): ensure methods of typecharliesome2013-06-181-0/+8
| | | | | | | | VM_METHOD_TYPE_ATTR_SET are called with 1 argument * test/ruby/test_module.rb (class TestModule): add test git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41389 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_symbol.rb: fix testnobu2013-06-181-4/+2
| | | | | | | * test/ruby/test_symbol.rb (test_block_persist_between_calls): needs receiver object. [Bug #8531] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Remove useless sleepnaruse2013-06-181-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41377 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add timeout to avoid sticknaruse2013-06-181-7/+10
| | | | | | http://fbsd.rubyci.org/~chkbuild/ruby-trunk/log/20130618T030202Z.diff.html.gz git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Message is 3rd argument, not 2ndnaruse2013-06-181-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_proc.rb (TestProc#test_block_given_method_to_proc):ktsj2013-06-171-1/+0
| | | | | | run test for r41359. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41361 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/ruby.h, vm_eval.c (rb_funcall_with_block):ktsj2013-06-171-1/+0
| | | | | | | | | | | | | | | | new function to invoke a method with a block passed as an argument. * string.c (sym_call): use the above function to avoid a block sharing. [ruby-dev:47438] [Bug #8531] * vm_insnhelper.c (vm_yield_with_cfunc): don't set block in the frame. * test/ruby/test_symbol.rb (TestSymbol#test_block_given_to_proc): run related tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * include/ruby/intern.h, proc.c (rb_method_call_with_block):ktsj2013-06-171-1/+0
| | | | | | | | | | | | | new function to invoke a Method object with a block passed as an argument. * proc.c (bmcall): use the above function to avoid a block sharing. [ruby-core:54626] [Bug #8341] * test/ruby/test_proc.rb (TestProc#test_block_persist_between_calls): run related tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41359 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Write stdin_data only if it existsnaruse2013-06-171-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41356 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use assert_separately to inspect test failure of ↵naruse2013-06-171-22/+10
| | | | | | | | TestJSONGenerate#test_broken_bignum http://fbsd.rubyci.org/~chkbuild/ruby-trunk/log/20130617T010202Z.log.html.gz#test%2F-ext- git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e