summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * test/dl/test_base.rb: Add dragonfly to libc and libm switch.naruse2009-03-051-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22776 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb: fix wrong test, and add a test formame2009-03-041-1/+7
| | | | | | | sort_by!. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22771 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_array.rb: add some tests for coverage.mame2009-03-041-0/+14
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/prime.rb (Prime::prime?): used to return a wrong answer.yugui2009-03-031-0/+15
| | | | | | | | [ruby-core:22646]. * test/test_prime.rb (test_prime?): test case for [ruby-core:22646]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22741 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl: moved from ext/dl/test.nobu2009-03-035-0/+451
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22717 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (rsock_discard_cmsg_resource): definedakr2009-03-022-0/+2
| | | | | | | unconditionally. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22710 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_path.rb (test_extname): test for r19596.nobu2009-03-011-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_path.rb (test_basename): test for r19595.nobu2009-03-011-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22681 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (ancillary_unix_rights): check message type.akr2009-02-281-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22676 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (bsock_recvmsg_internal): close FDs passed byakr2009-02-271-3/+3
| | | | | | | | | SCM_RIGHTS unless :scm_rights=>true is given. (discard_cmsg): extracted from rsock_discard_cmsg_resource. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22667 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2009-02-271-0/+33
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22665 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb (modifiable): check if really frozen.nobu2009-02-271-0/+4
| | | | | | | [ruby-core:22559] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22652 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/lib/socket.rb (BasicSocket#connect_address): new method.akr2009-02-261-15/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22649 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/option.c (sockopt_level): extracted from sockopt_level_m.akr2009-02-251-0/+17
| | | | | | | | | | | (sockopt_optname): extracted from sockopt_optname_m. (sockopt_data): apply StringValue. (sockopt_s_linger): new method. (sockopt_linger): new method. (inspect_linger): show onoff value if it is neither 0 nor 1. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22634 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (ancillary_s_unix_rights): new method.akr2009-02-251-1/+58
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22631 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_force_encoding): should clear coderange at changingnobu2009-02-251-3/+7
| | | | | | | encoding. [ruby-core:22437] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22611 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_io_getline_1): enables limit even if rs is given.nobu2009-02-251-1/+2
| | | | | | | [ruby-core:22434] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22610 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_chomp_bang): coderange may change.nobu2009-02-241-0/+4
| | | | | | | [ruby-core:22414] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22608 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_delete_bang): should recalculate coderange.nobu2009-02-241-0/+5
| | | | | | | [ruby-talk:329267] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22606 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (ancillary_timestamp): support SCM_BINTIME.akr2009-02-241-2/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22594 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (ancillary_timestamp): new method.akr2009-02-241-0/+4
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22593 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (inspect_timespec_as_abstime): new function toakr2009-02-231-0/+23
| | | | | | | | | show struct timespec. (ancillary_inspect): use it for SCM_TIMESTAMPNS on GNU/Linux. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22571 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (inspect_bintime_as_abstime): new function toakr2009-02-231-0/+18
| | | | | | | | | | | show struct bintime. (ancillary_inspect): use it for SCM_BINTIME on FreeBSD. * ext/socket/mkconstants.rb: define SCM_BINTIME. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22570 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (inspect_timeval_as_abstime): use time_takr2009-02-231-2/+2
| | | | | | | | variable to avoid a warning on environments which use long as tv_sec as NetBSD. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22569 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2009-02-221-0/+18
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22562 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (tr_trans): should recalculate coderange.nobu2009-02-221-0/+2
| | | | | | | [ruby-core:22326] (reopened at [ruby-core:22328]) git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_string.rb (test_tr): test for [ruby-core:22328].nobu2009-02-221-3/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22546 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (tr_trans): should not be affected by the encoding ofnobu2009-02-221-0/+7
| | | | | | | replacement unless actually modified. [ruby-talk:328967] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22505 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (io_getpartial): error message describes what should beakr2009-02-212-2/+96
| | | | | | | | | | | | | | | | | waited after nonblocking error. (rb_io_write_nonblock): ditto. * ext/socket/init.c (s_recvfrom_nonblock): ditto. (s_accept_nonblock): ditto. * ext/socket/socket.c (sock_connect_nonblock): ditto. * ext/socket/ancdata.c (bsock_sendmsg_internal): ditto. (bsock_recvmsg_internal): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22486 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (ancillary_unix_rights): method renamed.akr2009-02-191-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22452 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/ancdata.c (ancillary_rights): new method.akr2009-02-181-8/+9
| | | | | | | | | | (make_io_for_rights): new function to allocate IOs for FDs in SCM_RIGHTS message. (bsock_recvmsg_internal): use make_io_for_rights. So the FDs can be closed by GC. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22426 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file_exhaustive.rb: skip some tests if euid == 0.mame2009-02-181-0/+8
| | | | | | | a patch from Lucas Nussbaum in [ruby-core:22209]. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22423 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * file.c (rb_file_s_extname): fix for spaces before extention.nobu2009-02-181-26/+25
| | | | | | | [ruby-dev:38044] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22394 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* care EWOULDBLOCK of accept_nonblock.akr2009-02-171-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22375 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ostruct/test_ostruct.rb (test_frozen): added assertions.nobu2009-02-171-0/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/ostruct.rb (OpenStruct#new_ostruct_member): checks if frozen.nobu2009-02-151-0/+8
| | | | | | | [ruby-talk:328195], [ruby-core:22142] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22332 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add a test.akr2009-02-151-0/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22323 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_pp.rb: extract from lib/pp.rb.akr2009-02-143-12/+739
| | | | | | | | | * test/test_prettyprint.rb: extract from lib/prettyprint.rb. * test/test_tsort.rb: extract from lib/tsort.rb. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22321 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/time.rb (Time.parse): raise ArgumentError if Date._parse don'takr2009-02-141-0/+1
| | | | | | | | extract date information. [ruby-core:20912] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22318 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * hash.c (rb_hash): always return a fixnum value because a returnmame2009-02-141-0/+11
| | | | | | | | | | value of rb_hash may be used as a hash value itself and bignums have no unique VALUE. * test/ruby/test_hash.rb: add a test for above. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22308 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * array.c (rb_ary_uniq_bang, rb_ary_uniq): unique by the result ofnobu2009-02-141-0/+9
| | | | | | given block. [ruby-dev:37998] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22307 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_time.rb: extracted from lib/time.rb.akr2009-02-141-4/+363
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22303 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add timeout.akr2009-02-141-1/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_{proc,method}.rb: updated tests.nobu2009-02-132-25/+25
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22278 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * cont.c (rb_fiber_alive_p): fix to return true instead of 1.ko12009-02-131-0/+9
| | | | | | | | | [ruby-dev:37991] * test/ruby/test_fiber.rb: add a test for Fiber#alive? git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22274 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/socket/test_socket.rb (test_udp_server): filter out unreachableakr2009-02-121-0/+3
| | | | | | | addresses. [ruby-dev:37970] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test only if Socket::AncillaryData exists.akr2009-02-121-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22257 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/stringio/test_stringio.rb (test_ungetc_pos): added.nobu2009-02-121-0/+15
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* test updated.akr2009-02-111-23/+27
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22245 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/socket/lib/socket.rb (Socket.unix_server_socket): close theakr2009-02-111-0/+3
| | | | | | | | socket when the block exits. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22234 b2dd03c8-39d4-4d8f-98ff-823fe69b080e