summaryrefslogtreecommitdiffstats
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* * test/ruby/test_string.rb (test_chop, test_chop!): tests for [ruby-core:23155].nobu2009-04-081-0/+5
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23158 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/stringio/test_stringio.rb (test_path): StringIO#path is nonobu2009-04-061-4/+0
| | | | | | | longer defined. [ruby-dev:38254] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23138 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/csv/test_interface.rb, test/csv/test_serialization.rb:jeg22009-03-302-21/+21
| | | | | | | | Trying more fixes some failing tests on Windows. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23099 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/csv/test_interface.rb: Trying a fix for some failing testsjeg22009-03-291-1/+1
| | | | | | | | on Windows. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * sprintf.c (rb_str_format): checks if named argument given twice.nobu2009-03-271-0/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23090 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * time.c (time_cmp): negate the result of reverse comparison.akr2009-03-261-0/+10
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23075 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): use NULL asnobu2009-03-221-1/+29
| | | | | | | application name for batch files. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23031 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/ossl_ssl.c (write_would_block): defined.akr2009-03-211-0/+56
| | | | | | | | | | | | | | | | (read_would_block): defined. (ossl_start_ssl): add nonblock argument. (ossl_ssl_connect): follow ossl_start_ssl change. (ossl_ssl_connect_nonblock): new method. (ossl_ssl_accept): follow ossl_start_ssl change. (ossl_ssl_accept_nonblock): new method. (ossl_ssl_read_internal): use write_would_block and read_would_block. (ossl_ssl_write_internal): ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb (test_popen_shell): test for [ruby-core:22960].nobu2009-03-201-0/+7
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23027 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_process.rb: skips tests need fd inheritance.nobu2009-03-201-11/+22
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23026 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * ext/openssl/lib/openssl/buffering.rbakr2009-03-201-0/+27
| | | | | | | | | | | (OpenSSL::Buffering#write_nonblock): new method. * ext/openssl/ossl_ssl.c (ossl_ssl_write_nonblock): new method. (ossl_ssl_write_internal): defined. (ossl_ssl_write): use ossl_ssl_write_internal. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23020 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use IO::WaitWritable.akr2009-03-192-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23007 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * io.c (rb_mWaitReadable): defined.akr2009-03-195-32/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (rb_mWaitWritable): defined. (io_getpartial): extend IO::WaitReadable on EWOULDBLOCK and EAGAIN. (rb_io_write_nonblock): extend IO::WaitWritable on EWOULDBLOCK and EAGAIN. * error.c (make_errno_exc): extracted from rb_sys_fail. (rb_mod_sys_fail): new function. * include/ruby/ruby.h (rb_mod_sys_fail): declared. (rb_mWaitReadable): declared. (rb_mWaitWritable): declared. * ext/socket/init.c (rsock_s_recvfrom_nonblock): extend IO::WaitReadable on EWOULDBLOCK and EAGAIN. (rsock_s_accept_nonblock): extend IO::WaitReadable on EWOULDBLOCK, EAGAIN, ECONNABORTED and EPROTO. * ext/socket/socket.c (sock_connect_nonblock): extend IO::WaitWritable on EINPROGRESS. * ext/socket/ancdata.c (bsock_sendmsg_internal): extend IO::WaitWritable on EWOULDBLOCK and EAGAIN. (bsock_recvmsg_internal): extend IO::WaitReadable on EWOULDBLOCK and EAGAIN. * ext/openssl/ossl_ssl.c (ossl_ssl_read_internal): raise SSLError extended by IO::WaitReadable/IO::WaitWritable on SSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE. * ext/openssl/ossl.c (ossl_make_error): extracted from ossl_raise. (ossl_exc_new): new function. * ext/openssl/ossl.h (ossl_exc_new): declared. * lib/net/protocol.rb (rbuf_fill): rescue IO::WaitReadable and IO::WaitWritable. [ruby-core:22539], [ruby-dev:38140] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* pattern refined for ldd on OpenBSD.akr2009-03-181-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23004 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_syslog.rb (TestSyslog#test_open): checkkazu2009-03-181-2/+4
| | | | | | | param after block again. because detect not to call block. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23002 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_syslog.rb (TestSyslog#test_open): checkkazu2009-03-181-3/+3
| | | | | | | block parameter in block. [ruby-dev:38180] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@23001 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/pathname.rb (Pathname#sub): set $~ in block.binding.akr2009-03-171-0/+9
| | | | | | | [ruby-dev:38173] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_win32.rb (Win32API): enclosed by DL::TestWin32.nobu2009-03-161-3/+3
| | | | | | | [ruby-core:22827] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22981 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/minitest/test_mini_test.rb: fixed tests depending on thenobu2009-03-151-5/+13
| | | | | | | detail of floating point representation. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22970 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * lib/rubygems/installer.rb (Gem::Installer#shebang): fix for envnobu2009-03-151-1/+1
| | | | | | | shebang. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22969 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_float.rb (TestFloat#test_to_s): precision wasnobu2009-03-141-1/+1
| | | | | | | increased. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22962 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * string.c (rb_str_subpat): accept capture name.akr2009-03-141-0/+6
| | | | | | | | | | | | | | | | | | | (rb_str_aref): follow above change. (rb_str_aref_m): pass the 2nd argument to rb_str_subpat. (rb_str_subpat_set): accept capture name. (rb_str_aset): follow above change. (rb_str_partition): ditto. (rb_str_aset_m): pass the 2nd argument to rb_str_subpat_set. * include/ruby/intern.h (rb_reg_backref_number): declared. * re.c (rb_reg_backref_number): defined. [ruby-core:21057] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22959 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* assert connects doesn't raise.akr2009-03-141-1/+6
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22949 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use argument only if it is absolute path.akr2009-03-111-2/+2
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22896 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/dl/test_base.rb: decide dll name of MSVCRT from RUBY_SO_NAME on ↵usa2009-03-111-5/+5
| | | | | | native Win32 platforms. [ruby-core:22828] git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22890 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_proc.rb: add some tests.mame2009-03-081-0/+31
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22827 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_enum.rb: add some tests.mame2009-03-081-0/+9
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22826 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_object.rb: add a test for Object#method_missing.mame2009-03-081-0/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22825 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/ruby/test_file_exhaustive.rb: add tests for File#size andmame2009-03-081-1/+18
| | | | | | | File.absolute_path. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22823 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* use ldd to find libc and libm if no information.akr2009-03-071-30/+33
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22819 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* add 64bit solaris library.akr2009-03-071-2/+8
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22817 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rubygems/simple_gem.rb: updated for 1.9.nobu2009-03-071-9/+13
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22815 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/rdoc/test_rdoc_markup_to_html_crossref.rb (verify_convert):nobu2009-03-071-1/+6
| | | | | | | appends backtrace. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22806 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/erb/test_erb.rb (test/erb/test_erb.rb): removed trailing spaces.nobu2009-03-071-1/+1
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22805 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/erb/test_erb.rb: reverted space sensitive test results.nobu2009-03-073-18/+18
| | | | | | | | | * test/rdoc/test_rdoc_parser_c.rb: ditto. * test/rdoc/test_rdoc_ri_default_display.rb: ditto. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22804 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* don't exit even if libc/libm is not found.akr2009-03-071-4/+12
| | | | | | | | | check lib[cm].so.6.1 as well on linux. add solaris lib. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22802 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * test/test_syslog.rb: moved.nobu2009-03-061-0/+164
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * {ext,lib,test}/**/*.rb: removed trailing spaces.nobu2009-03-06155-1196/+1196
| | | | git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22784 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
* * 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