
Hello everyone, 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. Sincerely, -Axel

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/
participants (2)
-
Axel Ismirlian
-
Niall Douglas