<div dir="ltr"><div>When you file it please shoot me an email, I'd like to vote for this feature.<br><br></div>Another idea if you are up to it is to add a watchdog to your own test, it's as simple as using alarm(3) and making a SIGALRM handler that invokes pstree and gdb however you like.  You could make the timeout slightly shorter than the ctest timeout and probably get good results.<br>

</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Feb 9, 2014 at 4:22 AM, Rolf Eike Beer <span dir="ltr"><<a href="mailto:eike@sf-mail.de" target="_blank">eike@sf-mail.de</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Am Sonntag, 9. Februar 2014, 16:22:54 schrieb Jayen Ashar:<br>
<div class="">> When ctest times out a test, is it possible to tell it to execute a<br>
> command before killing the subprocess?  I'd like to be able to use<br>
> pstree & gdb to determine where a nightly test is intermittently<br>
> getting stuck.<br>
<br>
</div>No, there is nothing like that yet. There are some other "execute process when<br>
…" things missing for tests, so I would say: file a feature request so it<br>
doesn't get lost once someone finds time to work on this.<br>
<span class="HOEnZb"><font color="#888888"><br>
Eike</font></span><br>--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</a><br>
<br>
Please keep messages on-topic and check the CMake FAQ at: <a href="http://www.cmake.org/Wiki/CMake_FAQ" target="_blank">http://www.cmake.org/Wiki/CMake_FAQ</a><br>
<br>
Kitware offers various services to support the CMake community. For more information on each offering, please visit:<br>
<br>
CMake Support: <a href="http://cmake.org/cmake/help/support.html" target="_blank">http://cmake.org/cmake/help/support.html</a><br>
CMake Consulting: <a href="http://cmake.org/cmake/help/consulting.html" target="_blank">http://cmake.org/cmake/help/consulting.html</a><br>
CMake Training Courses: <a href="http://cmake.org/cmake/help/training.html" target="_blank">http://cmake.org/cmake/help/training.html</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://www.cmake.org/mailman/listinfo/cmake" target="_blank">http://www.cmake.org/mailman/listinfo/cmake</a><br></blockquote></div><br><br clear="all"><br>-- <br>Cheers,<br>Leif
</div>