aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * io.c (io_fwrite): adjust stdio file position after direct write onnobu2009-10-261-0/+15
| | | | | | | BSDish platforms. [ruby-core:26300] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25485 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (**) adding documentationtenderlove2009-10-251-0/+10
| | | | | | * test/dl/test_handle.rb (test_NEXT) testing the NEXT handle git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25463 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_close_enabled_p) testing that handles cantenderlove2009-10-251-0/+17
| | | | | | be enabled and disabled for closure on GC. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25462 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (**) adding documentationtenderlove2009-10-251-0/+15
| | | | | | * test/dl/test_handle.rb (**) testing to_i and initialize git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_sym) refactoring rb_secure(2)tenderlove2009-10-251-0/+29
| | | | | | * test/dl/test_handle.rb (**) testing sym behavior git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_sym) removing unnecessary code. Addingtenderlove2009-10-251-0/+25
| | | | | | documentation and tests for current functionality. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25459 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/dl/handle.c (rb_dlhandle_close) check return value of dlclose()tenderlove2009-10-241-0/+13
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25458 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * class.c (rb_class_new): move class check to rb_check_inheritable().matz2009-10-231-2/+1
| | | | | | | * class.c (rb_check_inheritable): should not allow subclass of class Class. [ruby-core:26225] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25449 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/ext/dl/handle.c (rb_dlhandle_initialize) added rb_secure(2)tenderlove2009-10-231-0/+27
| | | | | | | [ruby-core:25762] * ext/dl/dl.c (rb_dl_dlopen) removed rb_secure(2) git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25448 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/envutil.rb (assert_in_out_err): test_stdout andakr2009-10-222-3/+3
| | | | | | | | | | test_stderr should be an array. * test/ruby/test_rubyoptions.rb (test_notfound): test_stdin of assert_in_out_err should be a string. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25435 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/scanf/test_scanfio.rb (TestScanfIO): needs to inheritnobu2009-10-211-3/+4
| | | | | | | | | | TestCase. * test/scanf/test_scanfio.rb (TestScanfIO#test_io): fixed a typo. close test data file. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/{marshaltestlib,test_marshal}.rb: suppressed warnings.nobu2009-10-212-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25425 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/logger/test_logger.rb (TestLogDevice#test_write): checknobu2009-10-201-0/+6
| | | | | | | also error message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25424 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Use Array#permutation for permutation tests.naruse2009-10-201-21/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25419 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * added monitor.rb test. see #2240 the bug on ruby_1_8.nahi2009-10-201-0/+27
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/logger.rb: imported upstream version (logger/1.2.7) see #2238.nahi2009-10-201-13/+137
| | | | | | | | | | * do not raise an exception even if log writing failed. * do not raise ShiftingError if an aged file already exists. (no ShiftingError will be raised from 1.2.7, just warn() instead) * test/logger/test_logger.rb: ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25413 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ripper/test_*.rb: fixed indent.nobu2009-10-204-31/+26
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25406 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (method_call): dispatch symbols. a patch from Andy Keep innobu2009-10-201-4/+18
| | | | | | | [ruby-core:26169]. [ruby-core:26165] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25405 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (mlhs_basic): fixed handling splat in middle of mlhs. anobu2009-10-201-20/+40
| | | | | | | patch from Andy Keep in [ruby-core:26163] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25404 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (parser_here_document): dispatch delayed heredocnobu2009-10-203-6/+20
| | | | | | | contents. based on a patch from Andy Keep in [ruby-core:24855]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25402 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * iseq.c (prepare_iseq_build, rb_iseq_build_for_ruby2cext):nobu2009-10-191-0/+4
| | | | | | | untrust mark array. [ruby-core:26137] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Retry until the signal is trapped.naruse2009-10-181-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25392 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_prime.rbyugui2009-10-181-0/+26
| | | | | | | | | | | | (TestPrime#test_eratosthenes_works_fine_after_timeout): test for [ruby-dev:39465]. * lib/prime.rb (Prime::EratosthenesSieve): fixed [ruby-dev:39465]. suppressed memory reallocation. constantified some magic numbers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25388 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (id2encidx): register encoding name.nobu2009-10-171-0/+43
| | | | | | | | (r_object0): register object before encoding name. [ruby-core:24882] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25387 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rake/test_fileutils.rb (Rake::TestFileUtils#test_sh): usesyugui2009-10-171-6/+6
| | | | | | | | | | | FileUtils::RUBY instead of fixed "ruby" so that the ruby command works fine in Ruby's "make test-all". (test_sh_with_a_single_string_argument): ditto. (test_sh_with_multiple_arguments): ditto. (test_sh_failure): ditto (test_sh_special_handling): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25385 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rake/data/unittest/subdir/.gitignore: dummy entry for ensuringyugui2009-10-171-0/+2
| | | | | | existance of "subdir" directory with git. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25384 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_thread.rb (test_status_and_stop_p): reduce the risknobu2009-10-161-4/+2
| | | | | | | of race condition. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25364 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_object.rb (test_respond_to_missing):nobu2009-10-161-1/+1
| | | | | | | respond_to_missing? should accept two arguments. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25363 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_object.rb (test_remove_method): test for Bug#2202.nobu2009-10-161-0/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_encoding_set): get rid of parsing non-ascii string, andnobu2009-10-151-21/+20
| | | | | | | refine messages for invalid name encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25350 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_reopen): unread current buffer before telling thenobu2009-10-151-0/+9
| | | | | | | position, for the case of reopening same file. [ruby-dev:39479] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/iconv/iconv.c (iconv_create): cannot retry with given block.nobu2009-10-153-3/+6
| | | | | | | [ruby-dev:39487] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25343 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/iconv/test_option.rb: removed particular implementationnobu2009-10-151-1/+1
| | | | | | | specific tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25342 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ruby.c (process_options): script name should not be shown in annobu2009-10-141-0/+9
| | | | | | | error message before loaded. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25330 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_regexp.rb (TestRegexp#test_parse_kg): suppressnobu2009-10-121-1/+1
| | | | | | | warnings while tests. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25309 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (has_encoding): added for check the regexpnaruse2009-10-111-1/+5
| | | | | | | | is dumped by 1.8 or 1.9. * marshal.c (r_object0): use has_encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rake/test_application.rb: not executable.nobu2009-10-111-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25299 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rake/test_namespace.rb: not executable.nobu2009-10-111-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25298 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * tool/enc-unicode.rb: parse range notation of UnicodeData.txt.naruse2009-10-081-0/+1
| | | | | | | | * enc/unicode/name2ctype.h, enc/unicode/name2ctype.h.blt, enc/unicode/name2ctype.kwd, enc/unicode/name2ctype.src: follow above change. [ruby-dev:39444] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/delegate.rb (Delegator::public_api): take snapshot ofmatz2009-10-061-0/+22
| | | | | | | | | | | | public method at the beginning time. * lib/delegate.rb (SimpleDelegator#initialize): use Delegator.public_api since public_method might be added after initialization. [ruby-dev:39383] * lib/delegate.rb (DelegateClass): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * marshal.c (struct {dump,load}_arg): manage with dfree, insteadnobu2009-10-041-0/+41
| | | | | | | | of using local variable which may be moved by context switch. [ruby-dev:39425] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25230 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* wrap by a module.akr2009-10-041-0/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/test_gem_installer.rb (test_build_extensions_extconf_bad):nobu2009-10-041-1/+1
| | | | | | | escaped meta charater. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25226 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/gemutilities.rb (setup): use ENV["RUBY"] beforenobu2009-10-041-0/+9
| | | | | | | installation. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/test_gem.rb (TestGem#test_self_find_files): "."nobu2009-10-041-1/+5
| | | | | | | is no longer included in $LOAD_PATH. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25224 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add assertion message.akr2009-10-041-2/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25223 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems: use require_relative.nobu2009-10-0367-80/+70
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25215 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rake/contrib/test_ftp.rb: moved.nobu2009-10-031-0/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25213 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rake: get rid of name collision.nobu2009-10-033-15/+14
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rake: get rid of name collision.nobu2009-10-0327-38/+38
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@25211 b2dd03c8-39d4-4d8f-98ff-823fe69b080e