Boost logo

Boost Users :

Subject: Re: [Boost-users] [test] Unexpected Exceptions
From: Gennadiy Rozental (rogeeff_at_[hidden])
Date: 2009-11-22 16:20:04


Florian Winter <fw <at> motama.com> writes:

>
> Hi,
>
> What is the intended behavior of Boost.Test if an unexpected exception
> is thrown? Example:
>
> void do_not_throw() throw() {
> throw "unexpected";
> }
>
> Some of my applications using Boost.Test seem exit with an error code of
> 0 (successful) if an unexpected exception is thrown. Is this the
> intended behavior?

What compiler are you using?

It seems that MSVC for example does not follow standard here:
http://msdn.microsoft.com/en-us/library/7twc8dwy(VS.80).aspx

gcc seems to be aborting the application.

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