aboutsummaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* suppress warnings: assigned but unused variable - posnaruse2014-04-241-2/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45706 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* suppress warnings: ambiguous first argument; put parentheses or even spacesnaruse2014-04-241-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45705 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Add test for r45492, r45693, r45698naruse2014-04-241-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45699 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* call to_inaruse2014-04-242-4/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45696 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* file.c: statfs_inspectnobu2014-04-241-0/+5
| | | | | | * file.c (statfs_inspect): add File::Statfs#inspect method. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45695 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * parse.y (dsym_node_gen): like r45492, call rb_gc_resurrect().naruse2014-04-231-0/+6
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45693 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* skip on SEEK_HOLEnaruse2014-04-231-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45691 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (statfs_fsid): remove statfs.f_fsid because it doesn't returnnaruse2014-04-231-1/+0
| | | | | | meaningful value portably. http://togetter.com/li/658517 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45689 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check Linux versionnaruse2014-04-231-0/+3
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* fix typonaruse2014-04-231-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45682 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check whther ext4+ or notnaruse2014-04-231-2/+4
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45679 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* stringio.c: use rb_str_append other than ASCII-8BITnobu2014-04-231-0/+18
| | | | | | | | * ext/stringio/stringio.c (strio_write): use rb_str_append to reuse coderange bits other than ASCII-8BIT, and keep taintedness. [ruby-dev:48118] [Bug #9769] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45677 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* Revert r45670 "stringio.c: use rb_str_append"naruse2014-04-221-11/+0
| | | | | | | | | | It breaks test-all. http://u64b.rubyci.org/~chkbuild/ruby-trunk/log/20140422T143301Z.diff.html.gz rb_str_conv_enc() return original string for example when from ASCII-8BIT to UTF-8 with non ASCII strings git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45674 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* stringio.c: use rb_str_appendnobu2014-04-221-0/+11
| | | | | | | | * ext/stringio/stringio.c (strio_write): use rb_str_append to reuse coderange bits and keep taintedness. [ruby-dev:48118] [Bug #9769] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45670 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_io_statfs): need to define even if the system doesn't haveusa2014-04-221-0/+1
| | | | | | | | | | fstatfs(2). * test/ruby/test_file.rb (TestFile#test_statfs): skip if IO#stafs is not implemented. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45668 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* check statfs and skipnaruse2014-04-221-0/+20
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45666 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* refix the point is seeknaruse2014-04-221-4/+8
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45664 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* show what filesystem it is on failurenaruse2014-04-221-2/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45662 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c: newly added a class File::Statfs. (experimental)naruse2014-04-221-0/+19
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45661 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_io.rb: test with holesnobu2014-04-221-0/+20
| | | | | | | * test/ruby/test_io.rb (test_seek, test_seek_symwhence): add tests of SEEK_DATA and SEEK_HOLE with holes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45659 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/-test-/string/coderange.c: add Bug::String.new#coderange_scannaruse2014-04-211-0/+59
| | | | | | to explicitly scan coderange. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* stringio.c: non-ascii encodingnobu2014-04-211-0/+16
| | | | | | | * ext/stringio/stringio.c (strio_putc): fix for non-ascii encoding, like as IO#putc. [ruby-dev:48114] [Bug #9765] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45646 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * st.c (st_foreach_check): chnage start point of search at checktarui2014-04-201-0/+11
| | | | | | | from top to current. [ruby-dev:48047] [Bug #9646] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45642 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* parse.y: allow parenthesed do-block in cmdargnobu2014-04-191-0/+5
| | | | | | | | * parse.y (primary): flush cmdarg flags inside left-paren in a command argument, to allow parenthesed do-block as an argument without arguments parentheses. [ruby-core:61950] [Bug #9726] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45637 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* enum.c: fix condition to recycle block argumentnobu2014-04-161-0/+10
| | | | | | | | * enum.c (dont_recycle_block_arg): fix condition to recycle block argument. lambda with rest can get internal array directly. [ruby-core:62060] [Bug #9749] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45603 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_enum.rb: add testsnobu2014-04-161-0/+12
| | | | | | | * test/ruby/test_enum.rb (test_each_slice, test_each_cons): add missing tests for Enumerable#each_slice and Enumerable#each_cons. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45602 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/fileutils/test_fileutils.rb: revert r45600.nobu2014-04-161-1/+1
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45601 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_fileutils.rb: test :preserve optionnobu2014-04-161-1/+1
| | | | | | | * test/fileutils/test_fileutils.rb (test_cp_preserve_permissions): should test with setting :preserve option. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45600 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* ossl_pkey.c: fix memory leaknobu2014-04-161-0/+30
| | | | | | | | | * ext/openssl/ossl_pkey.c (ossl_pkey_verify): as EVP_VerifyFinal() finalizes only a copy of the digest context, the context must be cleaned up after initialization by EVP_MD_CTX_cleanup() or a memory leak will occur. [ruby-core:62038] [Bug #9743] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45595 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* proc.c: use already included ancestor iclassnobu2014-04-141-1/+18
| | | | | | | | | * proc.c (umethod_bind): use the ancestor iclass instead of new iclass to get rid of infinite recursion, if the defined module is already included. [ruby-core:62014] [Bug #9721] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45585 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * bignum.c (SIZEOF_BDIGIT): Renamed from SIZEOF_BDIGITS.akr2014-04-134-4/+4
| | | | | | | | | | | | * internal.h: Ditto. * marshal.c: Ditto. * rational.c: Ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45580 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_array.rb: skip if timed outnobu2014-04-111-3/+7
| | | | | | | * test/ruby/test_array.rb (test_shared_marking): skip if timed out, this test can just take a lot of time. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45567 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_array.rb: expand timeoutnobu2014-04-111-1/+1
| | | | | | | * test/ruby/test_array.rb (test_shared_marking): expand timeout for less powerful machine. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45566 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* proc.c: fix super in bound UnboundMethodnobu2014-04-111-0/+24
| | | | | | | | | | * proc.c (rb_method_call_with_block, umethod_bind): call with IClass including the module for a module instance method. [ruby-core:61936] [Bug #9721] * vm_insnhelper.c (vm_search_super_method): allow bound UnboundMethod case. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45565 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* vm_insnhelper.c: preserve encodingsnobu2014-04-111-11/+11
| | | | | | | * vm_insnhelper.c (vm_search_super_method): preserve encodings of classes in message. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45564 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* array.c: maybe shared arraynobu2014-04-111-0/+16
| | | | | | | * array.c (ary_reject): may be turned into a shared array during the given block. [ruby-dev:48101] [Bug #9727] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_array.rb: do minor GCnobu2014-04-111-2/+5
| | | | | | | * test/ruby/test_array.rb (test_shared_marking): do minor GC to reduce WB-missed messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45561 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test_array.rb: simplify test_shared_markingnobu2014-04-111-15/+10
| | | | | | | * test/ruby/test_array.rb (test_shared_marking): simplify with timeout option and no random, also reduce same messages. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45558 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* envutil.rb: filter kwargsnobu2014-04-111-1/+5
| | | | | | | | * test/ruby/envutil.rb (EnvUtil#invoke_ruby): add stdout_filter and stderr_filter optional keyword arguments, which filter stdout and stderr outputs respectively. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45557 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb: remove useless `assert'.ko12014-04-101-1/+0
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45554 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_modify): remember shared array owner if a sharedko12014-04-101-1/+24
| | | | | | | | | | | | | array owner is promoted and a shared array is not promoted. Now, shared array is WB-unprotected so that shared arrays are not promoted. All objects referred from shared array should be marked correctly. [ruby-core:61919] [ruby-trunk - Bug #9718] * test/ruby/test_array.rb: add a test for above. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45553 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* explicitly specify ::Filenaruse2014-04-101-6/+6
| | | | | | | There's Bug::File in test/-ext-/file/test_stat.rb. It prevent constan search with `File`. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45551 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_gc.rb: more long timeout.ko12014-04-091-1/+1
| | | | | | | | This test failed under RGENGC_CHECK_MODE >= 2. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45538 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* string.c: fix capacitynobu2014-04-091-0/+11
| | | | | | | * string.c (str_buf_cat): should round up the capacity by 4KiB, but not number of rooms. [ruby-core:61886] [Bug #9709] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Add Matrix#cofactor [fix GH-568]marcandre2014-04-061-0/+11
| | | | | | Patch by gogotanaka git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45528 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix.rb: Add first_minor [fix GH-568]marcandre2014-04-061-0/+12
| | | | | | Patch by gogotanaka git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45527 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/matrix/test_matrix: Add tests for trivial cases [fix GH-576]marcandre2014-04-061-0/+3
| | | | | | Patch by gogotanaka git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45526 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/matrix: Handle empty diagonal matrix case [fix GH-576]marcandre2014-04-061-0/+1
| | | | | | Patch by gogotanaka git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45524 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* dln.c: non-ascii path on Windowsnobu2014-04-051-0/+22
| | | | | | | | * dln.c (dln_load): use wchar version to load a library in non-ascii path on Windows. based on the patch by Bugra Barin <bugrabarin AT hotmail.com> in [ruby-core:61845]. [Bug #9699] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45523 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/date/date_core.c (d_lite_cmp): should compare with #<.tadf2014-04-051-0/+2
| | | | git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45520 b2dd03c8-39d4-4d8f-98ff-823fe69b080e