1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/ruby
akr c4049f4cb6 * io.c (rb_mWaitReadable): defined.
(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: svn+ssh://ci.ruby-lang.org/ruby/trunk@23006 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2009-03-19 11:40:38 +00:00
..
enc
allpairs.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
beginmainend.rb
endblockwarn_rb
envutil.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
lbtest.rb
marshaltestlib.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
sentence.rb
test_alias.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_argf.rb
test_array.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_assignment.rb
test_basicinstructions.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_beginendblock.rb
test_bignum.rb
test_call.rb
test_case.rb
test_class.rb
test_clone.rb
test_comparable.rb
test_complex.rb
test_complex2.rb
test_complexrational.rb
test_condition.rb
test_const.rb
test_continuation.rb
test_defined.rb
test_dir.rb
test_econv.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_encoding.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_enum.rb * test/ruby/test_enum.rb: add some tests. 2009-03-08 16:38:33 +00:00
test_enumerator.rb * enumerator.c (enumerator_with_index): receives one argument which 2009-02-08 14:42:01 +00:00
test_env.rb
test_eval.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_exception.rb
test_fiber.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_file.rb
test_file_exhaustive.rb * test/ruby/test_file_exhaustive.rb: add tests for File#size and 2009-03-08 16:12:09 +00:00
test_fixnum.rb
test_float.rb * test/ruby/test_float.rb (TestFloat#test_to_s): precision was 2009-03-14 19:24:27 +00:00
test_fnmatch.rb
test_gc.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_hash.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_ifunless.rb
test_integer.rb
test_integer_comb.rb
test_io.rb * io.c (rb_mWaitReadable): defined. 2009-03-19 11:40:38 +00:00
test_io_m17n.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_iterator.rb
test_lambda.rb
test_literal.rb
test_m17n.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_m17n_comb.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_marshal.rb
test_math.rb
test_metaclass.rb
test_method.rb * test/ruby/test_{proc,method}.rb: updated tests. 2009-02-13 09:10:28 +00:00
test_mixed_unicode_escapes.rb
test_module.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_numeric.rb
test_object.rb * test/ruby/test_object.rb: add a test for Object#method_missing. 2009-03-08 16:13:26 +00:00
test_objectspace.rb
test_optimization.rb
test_pack.rb
test_parse.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_path.rb * test/ruby/test_path.rb (test_extname): test for r19596. 2009-03-01 05:16:14 +00:00
test_pipe.rb
test_primitive.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_proc.rb * test/ruby/test_proc.rb: add some tests. 2009-03-08 17:26:26 +00:00
test_process.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_rand.rb
test_range.rb
test_rational.rb
test_rational2.rb
test_readpartial.rb * test/ruby/test_readpartial.rb (make_pipe): readpartial does not 2009-02-02 23:21:10 +00:00
test_regexp.rb * string.c (rb_str_subpat): accept capture name. 2009-03-14 18:04:21 +00:00
test_require.rb adds a test case for r21955 and r21917. 2009-02-02 11:33:08 +00:00
test_rubyoptions.rb * version.h: bump up to 1.9.2 patchlevel -1. 2009-02-02 07:07:59 +00:00
test_settracefunc.rb
test_signal.rb
test_sleep.rb
test_sprintf.rb
test_sprintf_comb.rb
test_string.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_stringchar.rb
test_struct.rb
test_super.rb
test_symbol.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_system.rb * sample/test.rb (valid_syntax?), test/ruby/test_system.rb 2009-02-02 03:39:01 +00:00
test_thread.rb
test_time.rb
test_trace.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_transcode.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_unicode_escape.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_variable.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_whileuntil.rb * {ext,lib,test}/**/*.rb: removed trailing spaces. 2009-03-06 03:56:38 +00:00
test_yield.rb
ut_eof.rb