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:
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.


ned Productions Limited Consulting

Boost list run by bdawes at, gregod at, cpdaniel at, john at