How to add timeout to Ada tests

Jim Wilson wilson@specifixinc.com
Tue Mar 30 06:20:00 GMT 2004


Bauke van Dijk wrote:
> Any idea's how to fix this ?

The Ada testsuite unfortunately does not support timeouts.  Writing a 
dejagnu framework for the Ada testsuite would solve this, but would be a 
bit of work.  I think this is the best solution.

Since the Ada testsuite is mostly shell scripts, it might be possible to 
fix this by using shell limits, for instance the bash ulimit -t command. 
  This isn't a perfect solution though, since ulimit -t limits cpu time, 
and we really need something that limits clock time, in case there is a 
deadlock.
-- 
Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com



More information about the Gcc mailing list