Boost logo

Boost-Build :

Subject: Re: [Boost-build] Adding command line arguments to tests
From: Johan Nilsson (r.johan.nilsson_at_[hidden])
Date: 2009-11-17 06:56:18


Christian Auby wrote:
> Snip:
>
> ---
> bjam toolset=gcc -j2
> ...patience...
> ...patience...
> ...found 2380 targets...
> ...updating 2 targets...
> testing.capture-output
> bin\add.test\gcc-mingw-3.4.5\debug\link-static\threading-multi\add.run
> ====== BEGIN OUTPUT ======
> <TestLog><TestSuite name="Tests"><TestCase
> name="universeInOrder"><Error file="tests/add.cpp" line="11">check
> add(2, 2) == 5
> failed</Error><TestingTime>0</TestingTime></TestCase></TestSuite></TestLog>
> *** 1 failure detected in test suite "Tests"
>

[snip]

>
> ...failed testing.capture-output
> bin\add.test\gcc-mingw-3.4.5\debug\link-static\threading-multi\add.run...
> ...failed updating 1 target...
> ...skipped 1 target...
> ---
>
> Why is this target failing? testing.capture-output is an internal
> boost.test target I guess? This only happens if the test fails.

IIUC the target fails because the test fails (as intended). The
"testing.capture-output" is an implementation detail.

/ Johan


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk