Subject: Re: [boost] CMake and Boost Build tests
From: paul (pfultz2_at_[hidden])
Date: 2017-07-26 21:13:53
On Wed, 2017-07-26 at 21:48 +0100, Roger Leigh via Boost wrote:
> On 26/07/17 21:28, Edward Diener via Boost wrote:
> > On 7/26/2017 3:33 PM, Robert Ramey via Boost wrote:
> > >
> > > On 7/26/17 11:49 AM, Edward Diener via Boost wrote:
> > >
> > > I couldn't make the compile-fail and run-fail targets to work so IÂ
> > > just removed them from the cmake test suite.Â Â So if your thinking thatÂ
> > > CMake has a ways to go to be able to offer what we expect, you're right.
> > So you are saying that you cannot run a unit test with CMake that isÂ
> > meant to show a failure. Wow, what a brilliant system !
> ctest itself treats a nonzero return as failure.Â Â It's pretty trivial toÂ
> run a wrapper to invert the status for expected failures, and customiseÂ
> the test running in any way you see fit.Â Â See the EXPECT_FAIL lines in
> and the wrapper logic in
> as one way to do this.
There's really no need for that because you can just set the test property
WILL_FAIL to true, like I showed in my previous email.
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk