Boost logo

Boost :

Subject: Re: [boost] Running Tests with Timeouts
From: Niall Douglas (s_sourceforge_at_[hidden])
Date: 2014-06-07 06:48:10


On 6 Jun 2014 at 13:54, Axel Ismirlian wrote:

> Is there a way to run all of the tests on all of the test suites with
> timeouts? Occasionally, I need to run all of the tests on all of the test
> suites, so I leave them overnight only to find out the next morning that
> one of them hung forever.

This is really a question belonging to boost-users ...

Yes there is, but Boost.Test's implementation uses SIGALRM which
doesn't work on Windows and is unreliable on Linux.

You may find what AFIO did instead useful:
https://github.com/BoostGSoC13/boost.afio/blob/master/libs/afio/test/t
est_functions.hpp#L182. Basically he fires off a watchdog thread who
aborts the process after a certain period. This works very well on
all platforms.

Niall

-- 
ned Productions Limited Consulting
http://www.nedproductions.biz/ 
http://ie.linkedin.com/in/nialldouglas/



Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk