nobu
945e4692ca
console.c: IO.console arguments passing
...
* ext/io/console/console.c (console_dev): send the given arguments
to the opened console. as a special case, do nothing if :close
is given.
* test/lib/leakchecker.rb (LeakChecker#check_fd_leak): close if
console.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48993 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-25 07:14:12 +00:00
nobu
913943270d
test_io_console.rb: use gets
...
* test/io/console/test_io_console.rb (run_pty): pty cannot read
all, should use gets only.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48989 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-25 06:17:49 +00:00
nobu
d33a3837cb
test_io_console.rb: chomp results
...
* test/io/console/test_io_console.rb (run_pty): IO#readlines
ignores the given block. need map to chomp the results.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48987 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-25 03:51:27 +00:00
usa
c10d7640b2
* test/io/console/test_io_console.rb (TestIO_Console#run_pty): no block given.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-25 02:37:17 +00:00
nobu
d8d326c97a
console.c: get rid of NameError
...
* ext/io/console/console.c (console_dev): id_console is not a
constant name, use rb_const_remove() to get rid of NameError.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48982 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-12-25 01:09:17 +00:00
akr
fb2008a73a
* test/lib/envutil.rb: Moved from test/ruby/.
...
* test/lib/find_executable.rb: Ditto.
* test/lib/memory_status.rb: Ditto.
* test/lib/test/unit.rb: require envutil.
* test/: Don't require envutil in test files.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48409 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-11-13 16:05:37 +00:00
akr
88fda023aa
Join a thread.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-06-05 09:16:57 +00:00
akr
ab4c6921cb
Join threads.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46256 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-30 13:48:06 +00:00
akr
5b75a0614f
Join threads, not kill.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46255 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-30 13:28:39 +00:00
akr
e6da7c5ca9
test/io/console/test_io_console.rb: Close FDs.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46254 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-30 12:51:49 +00:00
akr
a2f9b00ad4
test/io/nonblock/test_flush.rb: Close fds.
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46228 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-29 12:42:14 +00:00
nobu
6add0613a3
test_io_console.rb: show failure details
...
* test/io/console/test_io_console.rb (test_noctty): use
`assert_ruby_status` to show failure details.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45903 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-05-10 12:15:19 +00:00
hsbt
fa7b849f94
* test/fiddle/test_function.rb: remove unused variables.
...
* test/fileutils/test_fileutils.rb: ditto.
* test/io/console/test_io_console.rb: ditto.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45164 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2014-02-24 09:12:18 +00:00
nobu
1e51f30463
test_io_console.rb: investigate hang-up
...
* test/io/console/test_io_console.rb (TestIO_Console#test_noctty):
grab error outputs and stop the loop upto 3 seconds.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40512 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-04-28 03:54:26 +00:00
nobu
490f1fc009
console.c: default by stty raw
...
* ext/io/console/console.c (rawmode_opt): use default values by `stty
raw`.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39060 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-05 04:27:57 +00:00
nobu
b381a662fe
test_io_console.rb: descriptive assertions
...
* test/io/console/test_io_console.rb (test_stringio_getch): use more
descriptive assertions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-03 07:54:24 +00:00
nobu
f050b22327
console.c: fix unit of min
...
* ext/io/console/console.c (rawmode_opt): min is minimum characters,
not tenths.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@39029 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-02-03 07:54:18 +00:00
usa
ffe2c179e4
* test/io/wait/test_io_wait.rb (TestIOWait#test_wait_writable_timeout): give
...
OS more time to clean up the file descriptor.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@38775 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2013-01-11 07:11:54 +00:00
nobu
2f80fddadc
test_io_wait.rb: Bug #7420
...
* test/io/wait/test_io_wait.rb (TestIOWait#fill_pipe):
Errno::EWOULDBLOCK may not be the same as Errno::EAGAIN. patch by
phasis68 (Heesob Park) at [ruby-core:49894]. [Bug #7420 ]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37984 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2012-11-29 08:11:10 +00:00
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