nobu
e786aa711d
io/wait: add IO#wait_writable method
...
* ext/io/wait/wait.c (io_wait_writable): this is easier to use than
IO.select for a single IO object and is immune to the
limitations/innefficiency of select() on platforms where poll/ppoll
is available. patched by Eric Wong. [Feature #4646 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-21 13:40:00 +00:00
nobu
dd9569ded8
* ext/io/console/console.c (set_rawmode): clear ECHOE and ECHOK
...
bits too.
* ext/io/console/console.c (echo_p): ignore ECHOE and ECHOK bits.
[ruby-dev:45309] [Bug #6116 ]
* ext/io/console/console.c (console_raw): fix rdoc.
* ext/io/console/console.c (console_set_echo): mentioned about
platform dependency.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34917 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-03-06 01:11:47 +00:00
nobu
8335ce7065
* ext/io/console/console.c (io_getch): default delegating method
...
for StringIO. https://github.com/nobu/io-console/issues/4
* ext/stringio/stringio.c: moved some methods to hidden modules.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@34376 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-01-25 18:24:09 +00:00
nobu
3723ac22d2
* ext/io/console/console.c (console_cooked, console_set_cooked):
...
new methods to reset cooked mode. [EXPERIMENTAL]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-11-18 07:12:14 +00:00
usa
f48ef8bb9e
* test/io/wait/test_io_wait.rb (TestIOWait#setup): of course, the
...
behavior of mingw is just same with mswin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@33305 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-09-21 08:02:03 +00:00
nobu
5fd10124aa
* test/io/console/test_io_console.rb (test_noctty): daemon() on
...
OpenBSD seems not to detach the controlling terminal, when the
argument noclose is non-zero. ref: [Bug #5135 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32848 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-04 22:00:36 +00:00
shyouhei
6851f29bb7
* test/io/console/test_io_console.rb (TestIO_Console#test_sync):
...
Skip when PTY allocation failed (that's not our failt).
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-08-01 06:36:09 +00:00
nobu
aba879a3f0
* test/io/console/test_io_console.rb (TestIO_Console#test_noctty):
...
dispose temporary file.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32155 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-17 22:34:07 +00:00
nobu
bc46dfd281
* test/io/console/test_io_console.rb (TestIO_Console#test_sync):
...
fix for daemon process.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32111 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-16 00:08:56 +00:00
naruse
179ab89278
Skip test_sync when there is no tty or something.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32089 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-14 15:49:12 +00:00
nobu
7905fc1e54
* test/io/console/test_io_console.rb (TestIO_Console#test_noctty):
...
split for each platforms.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32079 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-14 04:07:03 +00:00
nobu
d4eae546c8
* test/io/console/test_io_console.rb (TestIO_Console#test_noctty):
...
fix for Windows.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32073 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13 17:23:18 +00:00
nobu
73c6b9d453
* ext/io/console/console.c (console_dev): console should be
...
unbuffered.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32066 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13 14:33:36 +00:00
nobu
a7b0b52f09
* ext/io/console/console.c (console_dev): take care of no-ctty
...
case.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@32065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-06-13 14:28:53 +00:00
usa
69dcd16351
* test/io/wait/test_io_wait.rb (TestIOWait#{test_nread,test_ready?,
...
test_wait}: give system some time to process the written data.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31857 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-31 03:54:58 +00:00
kosaki
f23fa4b011
* test/io/wait/test_io_wait.rb: Linux socketpair(2) only support
...
AF_UNIX, but windows socketpair doesn't support it. we can't
avoid platform check. sigh!
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31472 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-07 20:21:38 +00:00
kosaki
16846eb90c
* test/io/wait/test_io_wait.rb: use Socket.pair instaed of pipe.
...
Windows can only treat a socket.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31470 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-07 15:17:22 +00:00
kosaki
70e9201610
* test/io/wait/test_io_wait.rb: skip tests if the platform is
...
mswin.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31469 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-05-07 14:57:38 +00:00
kosaki
e140be6956
fix commit mistake of r31389.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@31398 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-04-30 16:02:11 +00:00
nobu
afafb8c055
* test/io/nonblock/test_flush.rb (TestIONonblock#flush_test):
...
return true to finish the test.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30860 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-13 00:56:48 +00:00
nobu
7f46fadd9d
* lib/test/unit.rb (assert_include): add alias.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30853 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-02-12 14:17:54 +00:00
kosaki
b9c0b5039c
* test/io/console/test_io_console.rb: Don't run test if the system
...
don't support io/console.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30640 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2011-01-23 14:03:24 +00:00
shyouhei
045491d5be
* test/io/console/test_io_console.rb (TestIO_Console::helper):
...
PTY.open is not guaranteed to work. On my machine opening a
pty is prohibited via process control group. On those cases
exceptions shall occur, and that doesn't mean our fault.
Skip those tests on such situations.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@29281 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-09-17 07:52:21 +00:00
akr
4b31e99b8f
portability fix.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28535 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-03 15:44:12 +00:00
akr
d24d2d3ca4
refine tests.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28534 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-07-03 14:29:26 +00:00
akr
2acc30eead
add sleep.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28287 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-11 16:14:15 +00:00
nobu
188881b2a8
* test/io/nonblock/test_flush.rb (test_flush): try pipe and
...
socketpair. [ruby-dev:41517]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28143 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-06-03 04:05:20 +00:00
nobu
30f637024b
* ext/io/console/console.c (get_write_fd): return primary fd if no
...
io is tied for writing.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27785 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-13 09:45:29 +00:00
akr
54c0e4b76e
new test file.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@27761 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2010-05-12 14:15:30 +00:00
kazu
81577c26ee
* test/io/nonblock/test_flush.rb (TestIONonblock#test_flush):
...
rescue some exceptions. [ruby-dev:35638]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@18372 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-08-05 09:04:13 +00:00
akr
786e7aba7f
* test/io/nonblock/test_flush.rb: don't set Thread.abort_on_exception.
...
* test/net/imap/test_imap.rb: ensure disconnecting imap to terminate
receiver thread..
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16302 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2008-05-05 17:18:09 +00:00
akr
e282fc4c06
timeout larger area.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14797 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-30 12:42:20 +00:00
akr
77dece6e63
use timeout for thread join to avoid hang.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14786 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-29 18:39:43 +00:00
ko1
9c09689301
* test/io/nonblock/test_flush.rb: fix test for 1.9.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14605 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-12-24 11:30:29 +00:00
akr
68543f3092
use ML ref. for assertion message.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@13958 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-11-18 07:18:56 +00:00
ko1
db95cb49af
* test/io/nonblock/test_flush.rb: YARV doesn't raise any errors if
...
another thread close IO object which current thread is blocking with.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11796 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-20 06:11:37 +00:00
ko1
a8d47615da
* test/fileutils/test_fileutils.rb (check_singleton): fix to use
...
symbole instead of string.
* test/io/nonblock/test_flush.rb: enable tests.
* test/xmlrpc/test_webrick_server.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11743 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2007-02-14 16:53:00 +00:00
ko1
a3e1b1ce7e
* Merge YARV
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@11439 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2006-12-31 15:02:22 +00:00
nobu
807a93be08
* test/io/nonblock/test_flush.rb (TestIONonblock#test_flush): write
...
operation ignores EAGAIN.
* test/ruby/test_super.rb (TestSuper#test_define_method): test for
super from proc. [ruby-core:03856]
* test/socket/test_tcp.rb (TestTCPSocket#test_recvfrom): make
execution order more precise.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7496 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-12-07 18:26:12 +00:00
nobu
37eb7502db
* test/io/nonblock/test_flush.rb: abandon tests when io/nonblock is
...
not supported.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7416 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-29 06:22:42 +00:00
nobu
6e22160537
* test/io/nonblock/test_flush.rb: test transferred data.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7412 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-29 05:21:47 +00:00
nobu
e73b5c9bfc
* io.c (fptr_finalize): must not use FILE after fclose().
...
[ruby-dev:24985]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@7411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2004-11-29 05:00:46 +00:00