From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS6939 64.71.128.0/18 X-Spam-Status: No, score=-2.0 required=3.0 tests=AWL,BAYES_00, MSGID_FROM_MTA_HEADER shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Eric Wong Newsgroups: gmane.comp.lang.ruby.kgio.general Subject: [PATCH 1/3] test_poll: skip signal torture on Debian GNU/kfreebsd Date: Wed, 11 Jul 2012 15:34:56 -0700 Message-ID: <1342046098-27952-2-git-send-email-normalperson@yhbt.net> References: <1342046098-27952-1-git-send-email-normalperson@yhbt.net> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1342046134 15032 80.91.229.3 (11 Jul 2012 22:35:34 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 11 Jul 2012 22:35:34 +0000 (UTC) To: kgio@librelist.org Original-X-From: kgio@librelist.org Thu Jul 12 00:35:34 2012 Return-path: Envelope-to: gclrkg-kgio@m.gmane.org List-Archive: List-Help: List-Id: List-Post: List-Subscribe: List-Unsubscribe: Precedence: list Original-Sender: kgio@librelist.org Xref: news.gmane.org gmane.comp.lang.ruby.kgio.general:178 Archived-At: Received: from zedshaw.xen.prgmr.com ([64.71.167.205]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sp5VG-0003mm-4J for gclrkg-kgio@m.gmane.org; Thu, 12 Jul 2012 00:35:26 +0200 Received: from zedshaw.xen.prgmr.com (localhost [IPv6:::1]) by zedshaw.xen.prgmr.com (Postfix) with ESMTP id D74E021E1BB for ; Wed, 11 Jul 2012 22:44:17 +0000 (UTC) From: Eric Wong This cascades test failures on a platform with questionable signal/fork handling. Tested on: Debian GNU/kFreeBSD 6.0 --- test/test_poll.rb | 8 +++----- 1 files changed, 3 insertions(+), 5 deletions(-) diff --git a/test/test_poll.rb b/test/test_poll.rb index 40092cf..3aa8c1f 100644 --- a/test/test_poll.rb +++ b/test/test_poll.rb @@ -126,9 +126,7 @@ class TestPoll < Test::Unit::TestCase _, status = Process.waitpid2(pid) assert status.success?, status.inspect assert usr1 > 0, "usr1: #{usr1}" - rescue Object => err - p [ :err, err ] - ensure - trap(:USR1, "DEFAULT") - end + ensure + trap(:USR1, "DEFAULT") + end unless RUBY_PLATFORM =~ /kfreebsd-gnu/ end if Kgio.respond_to?(:poll) -- 1.7.2.5