kgio RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: kgio@librelist.org
Subject: [PATCH 1/3] test_poll: skip signal torture on Debian GNU/kfreebsd
Date: Wed, 11 Jul 2012 15:34:56 -0700	[thread overview]
Message-ID: <1342046098-27952-2-git-send-email-normalperson@yhbt.net> (raw)
In-Reply-To: 1342046098-27952-1-git-send-email-normalperson@yhbt.net

From: Eric Wong <ew@debkfreebsd.(none)>

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



  reply	other threads:[~2012-07-11 22:35 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-11 22:34 [PATCH 0/3] test fixes for GNU/kFreeBSD (and possibly other *BSDs) Eric Wong
2012-07-11 22:34 ` Eric Wong [this message]
2012-07-11 22:34 ` [PATCH 2/3] test/lib_read_write: wait for readability before tryread Eric Wong
2012-07-11 22:34 ` [PATCH 3/3] test workaround for platforms with unreliable signals Eric Wong

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://yhbt.net/kgio/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1342046098-27952-2-git-send-email-normalperson@yhbt.net \
    --to=normalperson@yhbt.net \
    --cc=kgio@librelist.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhbt.net/kgio.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).