aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * bin/testrb, test/runner.rb, lib/test/unit.rb: improve backwardnobu2011-02-111-9/+1
| | | | | | compatibility. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30841 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * eval.c (ruby_cleanup): use rb_ary_free to free internal object.nobu2011-02-111-1/+10
| | | | | | | * gc.h (RUBY_FREE_UNLESS_NULL): get rid of double free. [ruby-core:35192] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30840 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_transcode.rb (test_from_cp50221): fix wrongnobu2011-02-111-1/+2
| | | | | | assertion and move back. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30839 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby: uniquify test names.nobu2011-02-112-7/+7
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30837 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * configure.in (rubygems): add --disable-rubygems option.nobu2011-02-111-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30835 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rdoc/test_rdoc_encoding.rb: remove unnecessary (and wrong)usa2011-02-091-12/+0
| | | | | | | platform-dependent hacks. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Upgrade to RDoc 3.5.3. Fixes [Bug #4376]drbrain2011-02-074-16/+136
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* TestProcess#test_wait_and_sigchild randomly fails on FreeBSDnaruse2011-02-071-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30814 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rdoc/test_rdoc_options.rb (TestRDocOptions#test_check_files):usa2011-02-071-23/+19
| | | | | | | | there is no easy way to create owner unreadable file on Windows. So, skip the test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30811 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/pty/pty.c (chfunc): suppress a warning.nobu2011-02-061-0/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30809 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Ensure result encoding is the same as input encoding for String#gsub. [Bug ↵drbrain2011-02-061-0/+15
| | | | | | #4340]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (words, qwords): dispatch array events. based on anobu2011-02-062-11/+29
| | | | | | | patch from Michael Edgar. [Bug #4365]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fileutils/fileasserts.rb (FileAssertions): separate module.nobu2011-02-063-1/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Surpress warnings: possibly useless use of :: in void contextnaruse2011-02-051-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30801 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (mlhs_basic): include mlhs_post for ripper. a patchnobu2011-02-051-0/+13
| | | | | | from Michael Edgar at [ruby-core:35078]. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30799 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/test/unit/assertions.rb (assert_block): move fromnobu2011-02-051-4/+0
| | | | | | test/fileutils/fileasserts.rb. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30798 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fileutils/fileasserts.rb (assert_block): pass argumentsnobu2011-02-051-2/+2
| | | | | | as-is. [ruby-dev:43174] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import RDoc 3.5.2drbrain2011-02-055-9/+149
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30795 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_cipher.c (ossl_cipher_alloc): leave data ptrnobu2011-02-051-0/+5
| | | | | | | | | NULL. * ext/openssl/ossl_cipher.c (ossl_cipher_new, ossl_cipher_initialize): allocate internal structure. [ruby-core:35094] * ext/openssl/ossl_cipher.c (ossl_cipher_copy): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30793 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/parser/parser.h (GET_PARSER): raise TypeError.nobu2011-02-051-2/+2
| | | | | | * ext/json/parser/parser.rl (cParser_initialize): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30792 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/json/parser/parser.h (GET_PARSER): check if initialized.nobu2011-02-051-0/+7
| | | | | | | [ruby-core:35079] * ext/json/parser/parser.rl (cParser_initialize): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30791 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * load.c (rb_get_expanded_load_path): always expand load paths.nobu2011-02-051-0/+25
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30789 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/fileutils.rb (FileUtils::LowMethods): make low level methodsnobu2011-02-043-76/+94
| | | | | | | in NoWrite and DryRun to do nothing. [ruby-dev:43129] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30787 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fileutils/fileasserts.rb: add message arguments.nobu2011-02-041-16/+17
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fileutils/fileasserts.rb (Test::Unit::Assertions#assert_block):nobu2011-02-041-0/+4
| | | | | | | show the given message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (lex_getline, parser_set_encode): set encoding of linesnobu2011-02-041-0/+59
| | | | | | in SCRIPT_LINES__ as source encoding. [ruby-dev:43168] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/zlib/zlib.c (gzfile_reader_get_unused): no need to dupnobu2011-02-031-2/+2
| | | | | | before rb_str_resurrect. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* e ext/zlib/zlib.c (gzfile_reader_get_unused): use rb_str_resurrectnaruse2011-02-031-2/+30
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30773 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * re.c (Init_Regexp): added a constant for ARG_ENCODING_NONEtenderlove2011-02-021-0/+6
| | | | | | | [ruby-core:35054] * test/ruby/test_regexp.rb: corresponding test. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30765 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/psych/lib/psych/visitors/to_ruby.rb: ARG_ENCODING_NONE regulartenderlove2011-02-022-0/+10
| | | | | | | | | | expressions can round trip. [ruby-core:34969] * test/psych/test_yaml.rb: test for ARG_ENCODING_NONE regex * ext/sych/lib/syck/rubytypes.rb: ARG_ENCODING_NONE regular expressions can round trip. * test/syck/test_yaml.rb: test for ARG_ENCODING_NONE regex git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Commit files I forgot to adddrbrain2011-02-022-0/+237
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import RDoc 3.5.1drbrain2011-02-0215-37/+1353
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30760 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_require.rb (TestRequire#test_require_with_unc):usa2011-02-011-1/+1
| | | | | | | | use ``127.0.0.1'' instead of ``localhost'' as host name, because XP or earlier cannot resolv it as NBT hostname. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30754 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/benchmark/test_benchmark.rb (#capture_bench_output):kosaki2011-02-011-1/+1
| | | | | | | | | | Added explict sleep. Windows have imprecise time support. Thus Tms.new.Add!{} may be or may be not equal 0. The test failure started since r30747. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30753 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import rubygems 1.5.0 (released version @ 1fb59d0)ryan2011-02-016-9/+106
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30752 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/benchmark.rb: fix benchmarck to work with current ruby.naruse2011-01-311-6/+162
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | patched by Benoit Daloze [ruby-core:33846] [ruby-dev:43143] merged from https://github.com/eregon/ruby/commits/benchmark * lib/benchmark (Report#width): update documentation * lib/benchmark: document the return value of #benchmark and the :list attribute in Report * lib/benchmark (Tms#format): rename variables, use String#% instead of Kernel.format * lib/benchmark: remove undocumented Benchmark::times (an alias of Process::times used twice) * lib/benchmark (#benchmark): use label_width for the caption * lib/benchmark (Tms#initialize): rename variables * lib/benchmark: allow title to not be a String and call #to_s * lib/benchmark (Benchmark#bm): return an Array of the times with the labels * lib/benchmark: correct output for Benchmark#bmbm (remove the extra space) * lib/benchmark: add a few tests for Benchmark::Tms output * lib/benchmark: improve style (enumerators, ljust, unused vars) * lib/benchmark: add spec about output and return value * lib/benchmark: improve basic style and consistency no parenthesis for print and use interpolation instead of printf * lib/benchmark: remove unnecessary conversions and variables * lib/benchmark: correct indentation * lib/benchmark: rename the FMTSTR constant and variable to FORMAT * lib/benchmark: remove useless exception * test/benchmark: remove unused variable warnings git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30747 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add ML Reference and a test for r30736 [ruby-core:34997]naruse2011-01-301-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30738 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/test_gem_security.rb (TestGemSecurity): valid onlynobu2011-01-301-1/+1
| | | | | | if OpenSSL is available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30734 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_dl2.rb (TestDL#test_sin): math functions do notnobu2011-01-302-0/+3
| | | | | | | work on x86_64 due to the design of DL2. * test/dl/test_func.rb (DL::TestFunc#test_{sinf,sin): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30733 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * strftime.c (rb_strftime_with_timespec): %G produces 4 digits.akr2011-01-301-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30732 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/emacs_mule.c (emacsmule_islead): 7bit range is also leadingnobu2011-01-301-11/+17
| | | | | | byte. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30731 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash_fetch_m): use useful message for longer key, not anobu2011-01-301-2/+8
| | | | | | nonsense id value. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30730 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_ellipsize): new function to ellipsize a string.nobu2011-01-301-0/+46
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30729 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * enc/emacs_mule.c (emacsmule_islead): fix inverse condition.nobu2011-01-301-0/+12
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30727 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_bn.c (GetBNPtr): add missing nil case.naruse2011-01-291-2/+8
| | | | | | patched by Martin Bosslet. [ruby-core:34987] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30724 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_join): [].join.encoding must be US-ASCII.naruse2011-01-291-0/+1
| | | | | | [ruby-list:47790] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30721 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * vm_insnhelper.c (vm_get_ev_const): no-scope reference to toplevelmame2011-01-291-0/+15
| | | | | | | | | private constant has been prohibited incorrectly. * test/ruby/test_module.rb (test_toplevel_private_constant): add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30718 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Import rubygems 1.5.0 (release candidate @ 09893d9)ryan2011-01-2872-1121/+212
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_mod_const_of, sv_i): Module#constant should excludemame2011-01-281-0/+4
| | | | | | | | | private constants. see [ruby-core:32912]. * test/ruby/test_module.rb (test_constants_with_private_constant): add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30716 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * variable.c (rb_const_set): const_set shoud preserve constantmame2011-01-281-0/+4
| | | | | | | | visibility. see [ruby-core:32912]. * test/ruby/test_module.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30715 b2dd03c8-39d4-4d8f-98ff-823fe69b080e