Boost logo

Boost Users :

Subject: [Boost-users] Boost unit test framework and the "system" system call under Linux.
From: Avila Mathieu (mathieu.avila_at_[hidden])
Date: 2009-12-31 10:17:31


Hello,

I'm a bit new to Boost, so please don't throw rocks at me if this sounds
stupid.

I have a simple module that allows to wrap an external command execution
using "system()". It returns a result that depends on the exit code.
I want to unit test this with boost test, as I do for other modules.
Unfortunately, it seems that the framework catches the signal of the
child exit if it exits with a non-zero exit code. So that the unit test
is aborted, which is not what I want.

It seems the Execution Monitor is the solution to my problem. Is it ?
How can I use it to prevent Boost from catching every signal ?

Thanks in advance,

--
Mathieu

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