ruby-changes:23038
From: shyouhei <ko1@a...>
Date: Mon, 19 Mar 2012 15:08:57 +0900 (JST)
Subject: [ruby-changes:23038] shyouhei:r35088 (trunk): * test/test_pty.rb: same as r29280, skip tests when PTY allocation
shyouhei 2012-03-19 15:08:44 +0900 (Mon, 19 Mar 2012) New Revision: 35088 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=35088 Log: * test/test_pty.rb: same as r29280, skip tests when PTY allocation failed (that's not our fault). Modified files: trunk/ChangeLog trunk/test/test_pty.rb Index: ChangeLog =================================================================== --- ChangeLog (revision 35087) +++ ChangeLog (revision 35088) @@ -1,3 +1,8 @@ +Mon Mar 19 15:05:54 2012 URABE Shyouhei <shyouhei@r...> + + * test/test_pty.rb: same as r29280, skip tests when PTY allocation + failed (that's not our fault). + Sun Mar 18 23:21:17 2012 Nobuyoshi Nakada <nobu@r...> * gc.c (aligned_free): fix condition for free. memalign() and Index: test/test_pty.rb =================================================================== --- test/test_pty.rb (revision 35087) +++ test/test_pty.rb (revision 35088) @@ -176,6 +176,9 @@ sleep(0.1) end until st2 = PTY.check(pid) end + rescue RuntimeError + skip $! + else assert_equal(pid, st1.pid) if st1 assert_nil(st1) assert_equal(pid, st2.pid) @@ -192,6 +195,9 @@ sleep(0.1) st2 = assert_raise(PTY::ChildExited, bug2642) {PTY.check(pid, true)}.status end + rescue RuntimeError + skip $! + else assert_equal(pid, st1.pid) if st1 assert_nil(st1) assert_equal(pid, st2.pid) @@ -206,6 +212,8 @@ assert(r.close_on_exec?) assert(w.close_on_exec?) } + rescue RuntimeError + skip $! end end if defined? PTY -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/