Boost logo

Boost Testing :

From: Rob Stewart (stewart_at_[hidden])
Date: 2005-05-18 12:19:22


From: Martin Wille <mw8329_at_[hidden]>
> Douglas Gregor wrote:
> >
> > Today, all of the iostreams tests seem to be looping for me. Any idea
> > what happened?
>
> The same happens here.
>
> I suggest we add something like
>
> ulimit -m 524288; ulimit -d 524288; ulimit -v 523288; ulimit -t 600
>
> to the script that runs the tests on Unix systems to make problems like
> this not break the testing procedure for everyone. (This sets memory
> limits to 512 MB and the CPU time limit to 600 seconds. There's no easy
> way of limiting the wall clock time taken.) Perhaps, the limits should
> be set even lower.

Managing the wall time of a task isn't hard:

   #!/bin/bash

   kill_if_still_alive()
   {
      sleep $1;
      kill $2 2>/dev/null
   }

   invoke_long_running_process&
   kill_if_still_alive 600 $!&
   wait %1
   kill %2

-- 
Rob Stewart                           stewart_at_[hidden]
Software Engineer                     http://www.sig.com
Susquehanna International Group, LLP  using std::disclaimer;

Boost-testing list run by mbergal at meta-comm.com