kgio RubyGem user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Jeremy Evans <code@jeremyevans.net>
To: kgio@librelist.org
Subject: Re: Current test failures on OpenBSD
Date: Tue, 15 Nov 2011 07:52:24 -0800	[thread overview]
Message-ID: <20111115155224.GW10168@jeremyevans.local> (raw)
In-Reply-To: 20111115032629.GB3666@dcvr.yhbt.net

On 11/15 03:26, Eric Wong wrote:
> Jeremy Evans <code@jeremyevans.net> wrote:
> >   1) Failure:
> > test_accept_flags(TestAcceptFlags) [test/test_accept_flags.rb:25]:
> > <false> is not true.
> 
> That might be a bad test, is this on MRI 1.8.7 or 1.9.x?
> There's a huge difference in how accept() works between them.

Eric,
 
Sorry for not being more specific earlier.  It only happens on 1.8.7.
The test passes on 1.9.3.

> >   1) Failure:                                                                                                                                         [38/1327]
> > test_blocking_accept_flags(TestKgioUNIXServer) [./test/lib_server_accept.rb:37]:
> > <false> expected but was
> > <true>.
> 
> Looks like the same class of failure for all the accept() tests...

This fails on 1.8.7 and passes on 1.9.3 on OpenBSD.

> kgio also attempts to allow the same listen socket to be shared
> between a 1.8.7 and 1.9.2 process during accept()
> 
> >   2) Failure:
> > test_tryaccept_flags(TestKgioUNIXServer) [./test/lib_server_accept.rb:28]:
> > <false> expected but was
> > <true>.

This fails on 1.8.7 and 1.9.3 on OpenBSD.

> >   1) Failure:
> > test_blocking_accept_flags(TestKgioTCPServer) [./test/lib_server_accept.rb:37]:
> > <false> expected but was
> > <true>.

This fails on 1.8.7 and passes on 1.9.3 on OpenBSD.

> >   2) Failure:
> > test_tryaccept_flags(TestKgioTCPServer) [./test/lib_server_accept.rb:28]:
> > <false> expected but was
> > <true>.

This fails on 1.8.7 and 1.9.3 on OpenBSD.

Should the 5 accept tests that fail on 1.8.7 just be skipped?

It looks like the tryaccept flag isn't supported on OpenBSD, or at least
that it doesn't set the returned socket to nonblocking.  Should those tests
be skipped on OpenBSD, or could there a bug in the code?

Thanks for your help,
Jeremy


  reply	other threads:[~2011-11-15 15:52 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-15  0:42 Current test failures on OpenBSD Jeremy Evans
2011-11-15  3:26 ` Eric Wong
2011-11-15 15:52   ` Jeremy Evans [this message]
2011-11-15 21:01     ` Eric Wong
2011-11-15 21:35       ` Eric Wong
2011-11-16  1:56         ` Jeremy Evans

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=20111115155224.GW10168@jeremyevans.local \
    --to=code@jeremyevans.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).