diff options
Diffstat (limited to 'test/test_pty.rb')
-rw-r--r-- | test/test_pty.rb | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/test/test_pty.rb b/test/test_pty.rb index 9e40a3d2fb..1c0c6fb3e8 100644 --- a/test/test_pty.rb +++ b/test/test_pty.rb @@ -14,7 +14,7 @@ class TestPTY < Test::Unit::TestCase def test_spawn_without_block r, w, pid = PTY.spawn(RUBY, '-e', 'puts "a"') rescue RuntimeError - skip $! + omit $! else assert_equal("a\r\n", r.gets) ensure @@ -34,7 +34,7 @@ class TestPTY < Test::Unit::TestCase end } rescue RuntimeError - skip $! + omit $! end def test_commandline @@ -49,7 +49,7 @@ class TestPTY < Test::Unit::TestCase end } rescue RuntimeError - skip $! + omit $! end def test_argv0 @@ -63,13 +63,13 @@ class TestPTY < Test::Unit::TestCase end } rescue RuntimeError - skip $! + omit $! end def test_open_without_block ret = PTY.open rescue RuntimeError - skip $! + omit $! else assert_kind_of(Array, ret) assert_equal(2, ret.length) @@ -100,7 +100,7 @@ class TestPTY < Test::Unit::TestCase x } rescue RuntimeError - skip $! + omit $! else assert(r[0].closed?) assert(r[1].closed?) @@ -115,7 +115,7 @@ class TestPTY < Test::Unit::TestCase assert(master.closed?) } rescue RuntimeError - skip $! + omit $! else assert_nothing_raised { PTY.open {|master, slave| @@ -133,7 +133,7 @@ class TestPTY < Test::Unit::TestCase assert_equal("bar", slave.gets.chomp) } rescue RuntimeError - skip $! + omit $! end def test_stat_slave @@ -143,7 +143,7 @@ class TestPTY < Test::Unit::TestCase assert_equal(0600, s.mode & 0777) } rescue RuntimeError - skip $! + omit $! end def test_close_master @@ -152,7 +152,7 @@ class TestPTY < Test::Unit::TestCase assert_raise(EOFError) { slave.readpartial(10) } } rescue RuntimeError - skip $! + omit $! end def test_close_slave @@ -165,7 +165,7 @@ class TestPTY < Test::Unit::TestCase ) { master.readpartial(10) } } rescue RuntimeError - skip $! + omit $! end def test_getpty_nonexistent @@ -175,7 +175,7 @@ class TestPTY < Test::Unit::TestCase begin PTY.getpty(File.join(tmpdir, "no-such-command")) rescue RuntimeError - skip $! + omit $! end } end @@ -194,7 +194,7 @@ class TestPTY < Test::Unit::TestCase end until st2 = PTY.check(pid) end rescue RuntimeError - skip $! + omit $! else assert_nil(st1) assert_equal(pid, st2.pid) @@ -212,7 +212,7 @@ class TestPTY < Test::Unit::TestCase st2 = assert_raise(PTY::ChildExited, bug2642) {PTY.check(pid, true)}.status end rescue RuntimeError - skip $! + omit $! else assert_nil(st1) assert_equal(pid, st2.pid) @@ -234,6 +234,6 @@ class TestPTY < Test::Unit::TestCase end } rescue RuntimeError - skip $! + omit $! end end if defined? PTY |