Boost logo

Boost Users :

Subject: Re: [Boost-users] testing command-line interface using Boost.Test
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2011-10-03 03:12:25


Olaf Meeuwissen <olaf.meeuwissen <at> avasys.jp> writes:

> > 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
>
> I tried this but without any effect. Either alternative below in the
> fixture's constructor yields the same result.

Yes. Fixture is part of test case and it's too late. You can probable switch it
in "fake" test case placed before those which require catch_system_error=false

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