[nanomsg] Re: Interception hooks for testing.

  • From: Paul Colomiets <paul@xxxxxxxxxxxxxx>
  • To: "nanomsg@xxxxxxxxxxxxx" <nanomsg@xxxxxxxxxxxxx>
  • Date: Fri, 4 Oct 2013 17:18:39 +0300

Hi Jeff,

On Fri, Oct 4, 2013 at 3:34 PM, Jeff Archer
<jsarcher@xxxxxxxxxxxxxxxxxxxxxx> wrote:
> I disagree.  The code could be conditionally included into DEBUG builds only
> and would allow nanomsg to be uniformly tested on all platforms without
> requiring outside utility that may not be available on some platforms.  I
> believe this level of defiend and supported by the project is a requirement
> for an open source project to be truly successful.
>

It's not something that is absolutely required to be tested on each
platform. Nanomsg should be tested that all the basics (reconnection,
failover, pushback) works on all platforms. And an application should
be tested to be able to survive network failures on at least one
platform, then there is a very low chance for something to fail on
other platforms.

In any case, you can try to define semantics and API for that, to take
it seriosly. e.g. it's very hard to simulate "iptables ... -j DROP"
without a firewall.

-- 
Paul

Other related posts: