Boost logo

Boost Users :

Subject: Re: [Boost-users] [Test] catch_system_errors default value ...
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-09-26 19:27:49


Georg Sauthoff wrote:
> Hi,
>
> the default of 'catch_system_errors = yes' when using the boost
> unit testing framework is a bit problematic.
>
> Apparently, it installs a signal handler for SIGCHILD. I didn't notice
> this under Linux. But under Solaris I've got an interrupted waitpid
> system call in one test case[1]. Well, and the trace looks really funny,
> if waitpid is interrupted by ... SIGCHILD! (the testcase basically does
> a fork/exec/waitpid)
>
> Thus, the default of this parameter is at least a bit counter-intuitive.
> Perhaps, you[2] consider to change this default in the future.

1. There is a reason why this default is set as is.
2. You can easily change it with command line argument of environment
variable. There is compile time option to disable catching SIGCHILD
(BOOST_TEST_IGNORE_SIGCHLD).

Gennadiy


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net