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.1 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: Re: kgio test_signal_close failed Date: Sun, 4 Mar 2012 19:17:52 +0000 Message-ID: <20120304191752.GA30236@dcvr.yhbt.net> References: 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 1330888696 22424 80.91.229.3 (4 Mar 2012 19:18:16 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sun, 4 Mar 2012 19:18:16 +0000 (UTC) To: kgio@librelist.org Original-X-From: kgio@librelist.org Sun Mar 04 20:18:15 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:87 Archived-At: Received: from zedshaw.xen.prgmr.com ([64.71.167.205]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1S4Gwg-00011A-NC for gclrkg-kgio@m.gmane.org; Sun, 04 Mar 2012 20:18:14 +0100 Received: from zedshaw.xen.prgmr.com (localhost [IPv6:::1]) by zedshaw.xen.prgmr.com (Postfix) with ESMTP id 90D5F21D421 for ; Sun, 4 Mar 2012 19:24:04 +0000 (UTC) 375gnu <375gnu@gmail.com> wrote: > Sometimes test_signal_close from test_poll.rb fails. Not every time, and only > with ruby1.9 (1.9.3.0 is my current version). With ruby 1.8.7 it's passed. Is this also on Debian/kfreebsd? I have a VM for that lying around somewhere, will investigate as I find time. > There is an output: > > Failure: exception expected but none was thrown. > test_signal_close(TestPoll) > /home/globus/work/pkg-ruby-extras/build-area/ruby-kgio-2.7.2/test/test_poll.rb:61:in > `test_signal_close' > 58: res = nil > 59: thr = Thread.new { sleep 0.100; Process.kill(:USR1, $$) } Does increasing the sleep time there help? It's a potential race condition :/ > 60: t0 = Time.now > => 61: assert_raises(IOError) { Kgio.poll({@rd => Kgio::POLLIN}) } > 62: diff = Time.now - t0 > 63: thr.join > 64: assert diff >= 0.010, "diff=#{diff}"