Inconsistency WAS Re: Running tests in background
Marc Lehmann
schmorp at schmorp.de
Thu Jul 1 06:12:01 CEST 2021
On Wed, Jun 30, 2021 at 11:47:26AM -0400, Felipe Gasper <felipe at felipegasper.com> wrote:
> Any thoughts on this, Marc?
More or less what was already said - I think if your tets environment runs
thing sin a very nonstandard environment, it should cope with the results.
Running programs with standard signals blocked puts an unneecssary burdne
on test authors, and therefore, is the primary place where things should
be changed.
> I assume that AnyEvent intends for its default behaviour to mimic, as best as possible, its behaviour when EV or Async::Interrupt are available. That being the case, would it not be sensible to make the above examples all work the same way?
No, AnyEvent tests try to make sure AnyEvent works as advertised. Blocking
standard signals, running the test suite and expecting specific results
sounds like the wrong approach to me.
--
The choice of a Deliantra, the free code+content MORPG
-----==- _GNU_ http://www.deliantra.net
----==-- _ generation
---==---(_)__ __ ____ __ Marc Lehmann
--==---/ / _ \/ // /\ \/ / schmorp at schmorp.de
-=====/_/_//_/\_,_/ /_/\_\
More information about the anyevent
mailing list