Are you using &quot;ctest_build&quot; and &quot;ctest_test&quot; in your -S script? If so, then ctest should fail with a non-zero result when there are build errors or test failures.<div><br></div><div>Are you saying that you have test failures, but ctest returns 0?<br>
<br></div><div>Can you share your script, or reproduce this with a minimal example project?</div><div><br></div><div><br></div><div>Thx,</div><div>David</div><div><br></div><div><br><div class="gmail_quote">On Wed, Feb 15, 2012 at 11:14 AM, Tom Deblauwe <span dir="ltr">&lt;<a href="mailto:tom.deblauwe@traficon.com">tom.deblauwe@traficon.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
I&#39;m able to run my unittests and build everything using a ctest -S script, and also submit the results to cdash. However, I would like to determine if the unittests fail in the bash script where I run ctest in. But it doesn&#39;t return an error code when the unittests fail. How can I determine this?<br>

<br>
Thanks,<br>
Best regards,<br>
Tom,<br>
<br>
--<br>
<br>
Powered by <a href="http://www.kitware.com" target="_blank">www.kitware.com</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/<u></u>opensource/opensource.html</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/<u></u>CMake_FAQ</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/<u></u>listinfo/cmake</a><br>
</blockquote></div><br></div>