ruby/test
normal ba5eb6458a socket: fix BasicSocket#*_nonblock buffering bugs from r58400
IO#read_nonblock and IO#write_nonblock take into account
buffered data, so the Linux-only BasicSocket#read_nonblock
and BasicSocket#write_nonblock methods must, too.

This bug was only introduced in r58400
("socket: avoid fcntl for read/write_nonblock on Linux")
and does not affect any stable release.

* ext/socket/basicsocket.c (rsock_init_basicsocket):
* ext/socket/init.c (rsock_s_recvfrom_nonblock):
* ext/socket/init.c (rsock_init_socket_init):
* ext/socket/lib/socket.rb (def read_nonblock):
* ext/socket/lib/socket.rb (def write_nonblock):
* ext/socket/rubysocket.h (static inline void rsock_maybe_wait_fd):
* test/socket/test_basicsocket.rb (def test_read_write_nonblock):
  [Feature #13362]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-10-27 23:26:48 +00:00
..
-ext- Fixed misspelling words. 2017-10-22 11:27:06 +00:00
base64 lib/base64.rb: Specify frozen_string_literal: true. 2017-02-10 00:58:45 +00:00
benchmark lib/benchmark.rb: Specify frozen_string_literal: true. 2017-01-03 02:00:01 +00:00
bigdecimal Remove unnecessary `require 'thread'` 2017-10-08 07:00:01 +00:00
cgi Fix strange indentation 2017-05-18 15:13:30 +00:00
coverage Add test cases for branch coverage 2017-10-23 13:25:59 +00:00
csv test_features.rb: fix unused variable warning 2017-09-26 10:45:14 +00:00
date ruby.h: unnormalized Fixnum value 2017-09-07 03:24:08 +00:00
dbm {ext,test}/dbm: Specify frozen_string_literal: true. 2017-01-28 04:36:08 +00:00
digest test/digest/test_digest.rb: fold long lines 2016-10-27 06:26:09 +00:00
drb Fix r60271 2017-10-21 14:22:04 +00:00
dtrace rename ruby-runner as bin/ruby 2017-09-15 17:42:00 +00:00
erb test_erb.rb: add test cases for uncovered methods 2017-09-26 11:30:45 +00:00
etc test_etc.rb: fix test_getgrnam for duplicated group names 2017-09-29 17:19:37 +00:00
excludes
fiddle Use mutable strings for mutation tests. 2017-09-12 23:15:34 +00:00
fileutils fix r60281 2017-10-21 14:35:19 +00:00
gdbm Import gemspec and test file changes from ruby/gdbm. 2017-04-25 07:55:56 +00:00
io test_io_console.rb: flush 2017-09-28 02:51:41 +00:00
irb ruby-lex.rb: fix continued line conditions 2017-04-20 11:07:02 +00:00
json require 'bigdecimal' 2017-06-16 04:04:53 +00:00
lib multiple arguments to write 2017-10-23 14:05:07 +00:00
logger multiple arguments to write 2017-10-23 14:05:07 +00:00
matrix * lib/matrix.rb: Add Vector.zero and Vector#zero? 2017-03-14 20:09:30 +00:00
minitest test_minitest_unit.rb: assert_triggered 2017-03-29 09:47:40 +00:00
misc test_ruby_mode.rb: fix for Emacs 25.1 2016-09-24 01:19:43 +00:00
mkmf multiple arguments to write 2017-10-23 14:05:07 +00:00
monitor Remove unnecessary `require 'thread'` 2017-10-08 07:00:01 +00:00
net Host header should add branckets to IPv6 address [Bug #12642] 2017-10-26 15:29:36 +00:00
nkf Fix test code of kconv 2017-09-15 16:56:16 +00:00
objspace io.c: encoding of ARGF.inplace_mode 2017-10-10 12:30:42 +00:00
open-uri lib/open-uri.rb: accept :encoding option as well as encoding in mode string. 2017-10-21 06:22:53 +00:00
openssl openssl: merge test fix from upstream 2017-10-21 20:26:26 +00:00
optparse multiple arguments to write 2017-10-23 14:05:07 +00:00
ostruct test/ostruct: Specify frozen_string_literal: true. 2017-10-25 23:45:33 +00:00
pathname Fixed misspelling words. 2017-10-22 11:27:06 +00:00
psych Merge psych-3.0.0.beta3 from ruby/psych. 2017-07-14 06:15:58 +00:00
rdoc Fix the leak in `TestRDocGeneratorDarkfish#test_generated_method_with_html_tag_yield` 2017-10-17 07:41:04 +00:00
readline suppress warning: assigned but unused variable - line 2017-08-15 21:36:16 +00:00
resolv Handle Errno::EADDRNOTAVAIL with Raspberry Pi environment. 2017-10-21 16:05:01 +00:00
rexml REXML: Fix a bug that unexpected methods can be called as a XPath function 2017-08-13 12:14:24 +00:00
rinda Stop a global server of Rinda test 2017-03-14 15:14:21 +00:00
ripper parse.y: indent at '#' 2017-10-19 05:10:38 +00:00
rss rss itunes: fix a bug that <itunes:explicit> value isn't fully supported 2017-10-22 16:03:57 +00:00
ruby skip tests temporarily 2017-10-27 18:55:28 +00:00
rubygems Merge rubygems master(ddbf3203f3857649abe95c73edefc7de7e6ecff4). 2017-10-20 09:03:37 +00:00
scanf Fix bug about String#scanf("%a") 2017-10-21 12:34:13 +00:00
sdbm
shell test_command_processor.rb: add suffix 2017-06-23 15:08:50 +00:00
socket socket: fix BasicSocket#*_nonblock buffering bugs from r58400 2017-10-27 23:26:48 +00:00
stringio stringio.c: write multiple arguments 2017-10-23 06:25:39 +00:00
strscan strscan.c: fix segfault in aref 2017-07-21 13:30:46 +00:00
syslog
testunit Get rid of a test error on Windows caused by r60417 2017-10-25 13:29:27 +00:00
thread Remove unnecessary `require 'thread'` 2017-10-08 07:00:01 +00:00
uri URI::Generic: Separate no_proxy handling 2017-09-28 10:51:31 +00:00
webrick webrick: do not hang acceptor on slow TLS connections 2017-10-12 18:50:07 +00:00
win32ole ext/win32ole/win32ole.c (fole_missing): set receiver in NoMethodError. 2017-10-21 23:57:10 +00:00
yaml lib/pstore.rb: Specify frozen_string_literal: true. 2017-01-17 12:47:38 +00:00
zlib zlib.c: multiple arguments to write 2017-10-23 07:06:12 +00:00
colors
runner.rb the working directory may not be srcdir 2017-09-07 17:45:34 +00:00
test_abbrev.rb lib/abbrev.rb: Specify frozen_string_literal: true. 2017-02-09 16:12:00 +00:00
test_cmath.rb lib/cmath.rb: Specify frozen_string_literal: true. 2017-01-04 05:47:52 +00:00
test_delegate.rb Delegate to `eql?` [Fix GH-1564] 2017-06-24 03:35:29 +00:00
test_extlibs.rb Revert "test/test_extilibs.rb: do not check the existence of fiddle" 2017-05-16 23:59:01 +00:00
test_find.rb test_find.rb: improve branch coverage 2017-09-30 03:31:32 +00:00
test_forwardable.rb * test/test_forwardable.rb (TestForwardable#test_on_private_method): add test for [Bug #12782] [Bug #12840] 2016-10-31 08:43:54 +00:00
test_ipaddr.rb Import ipaddr 1.2.0 2017-10-21 13:34:19 +00:00
test_mutex_m.rb Remove unnecessary `require 'thread'` 2017-10-08 07:00:01 +00:00
test_observer.rb lib/observer.rb: Specify frozen_string_literal: true. 2017-01-13 12:08:29 +00:00
test_open3.rb lib/open3.rb: accept IO-like object for :stdin_data argument. 2017-10-21 07:00:58 +00:00
test_pp.rb
test_prettyprint.rb
test_prime.rb prime.rb: remove alias after timeout test 2017-05-20 10:21:44 +00:00
test_pstore.rb lib/pstore.rb: Specify frozen_string_literal: true. 2017-01-17 12:47:38 +00:00
test_pty.rb
test_rbconfig.rb
test_securerandom.rb Use `\A` and `\z` instead of `^` and `$` 2017-10-22 09:16:54 +00:00
test_set.rb Add `Set#reset` 2017-10-22 12:25:34 +00:00
test_shellwords.rb Fix the handling of the backslash in double quotes 2016-11-05 04:58:48 +00:00
test_singleton.rb
test_syslog.rb
test_tempfile.rb Remove unnecessary `require 'thread'` 2017-10-08 07:00:01 +00:00
test_time.rb Make Time.parse respect timezone offset seconds 2017-10-20 01:03:18 +00:00
test_timeout.rb Remove unnecessary `require 'thread'` 2017-10-08 07:00:01 +00:00
test_tmpdir.rb test/test_tmpdir.rb: Specify frozen_string_literal: true. 2017-01-23 15:47:32 +00:00
test_tracer.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb lib/weakref.rb: Specify frozen_string_literal: true. 2017-01-26 15:14:00 +00:00
test_win32api.rb