[CMake] ctest_update return value is incorrect when update failed

Fedor Gusev gusevfe at gmail.com
Thu Sep 12 02:51:40 EDT 2013


Hello.

In CTest documentation it says that ctest_update returns -1 when update
failed: The RETURN_VALUE option specifies a variable in which to store the
result, which is the number of files updated or -1 on error. (see
http://www.cmake.org/cmake/help/v2.8.11/ctest.html#command:ctest_update)

I've noticed it is not true -- zero is returned instead. Attached patch
fixes this issue.
-- 
Kind regards,
Fedor Gusev.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130912/7d7738ae/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ctest_update_return_value_fix.patch
Type: application/octet-stream
Size: 657 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20130912/7d7738ae/attachment.obj>


More information about the CMake mailing list