about summary refs log tree commit homepage
path: root/test
diff options
context:
space:
mode:
authorEric Wong <ew@debkfreebsd.(none)>2012-07-02 03:16:09 +0000
committerEric Wong <normalperson@yhbt.net>2012-07-11 15:28:04 -0700
commitc79babfd175aa7b4be9d4d1a10a64c17b93730a0 (patch)
tree7e82cd14847dc19b2648475b9fb6882eb06a22d8 /test
parentff27e74a49bf6746ffe74cfc865430221f0bafe0 (diff)
downloadkgio-c79babfd175aa7b4be9d4d1a10a64c17b93730a0.tar.gz
This cascades test failures on a platform with questionable
signal/fork handling.

Tested on: Debian GNU/kFreeBSD 6.0
Diffstat (limited to 'test')
-rw-r--r--test/test_poll.rb8
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)