|
Boost Users : |
Subject: Re: [Boost-users] testing command-line interface using Boost.Test
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2011-09-30 14:06:03
Olaf Meeuwissen <olaf.meeuwissen <at> avasys.jp> writes:
>
> Gennadiy Rozental <rogeeff <at> gmail.com> writes:
>
> > Olaf Meeuwissen <olaf.meeuwissen <at> avasys.jp> writes:
> >> My only problem now is that I have no clue how to get at or where to
> >> look for the execution_monitor instance that I would need to change.
> >
> > You do not need execution_monitor instance. Yo ucan spacify runtime parameter
> > using either environment variable or CLA --catch_system_error=no
>
> True, but I would like to do this only for those tests that need it.
> That is, only for those tests that use the test fixture that provides
> the my_system() functionality. So if I have
1) I'd personally split this module in two and run one with and another without
catch_system_errors
2) You can use boost::unit_test::unit_test_monitor singleton to manipulate these
options at runtime. You'll have set and revert these values in fixture
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