[cmake-developers] [CMake 0011554]: Incorrect description for ctest_sleep command

Mantis Bug Tracker mantis at public.kitware.com
Wed Dec 1 16:09:17 EST 2010


The following issue has been SUBMITTED. 
====================================================================== 
http://public.kitware.com/Bug/view.php?id=11554 
====================================================================== 
Reported By:                Tommy A N Edvardsen
Assigned To:                
====================================================================== 
Project:                    CMake
Issue ID:                   11554
Category:                   CTest
Reproducibility:            always
Severity:                   text
Priority:                   normal
Status:                     new
====================================================================== 
Date Submitted:             2010-12-01 16:09 EST
Last Modified:              2010-12-01 16:09 EST
====================================================================== 
Summary:                    Incorrect description for ctest_sleep command
Description: 
The description of ctest_sleep command is incorrect and confusing:
"With three arguments it will wait for time2 - time1 - duration seconds."

In source file "cmCTestSleepCommand.cxx" the calculation is as follows:
duration = (time1 + duration - time2);
cmCTestScriptHandler::SleepInSeconds(duration);

The correct description would then be:
"With three arguments it will wait for time1 + duration - time2 seconds."

It is also worth noting that the description should include that no sleep will
be performed if time1 + duration is greater than time2. 

====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-12-01 16:09 Tommy A N EdvardsenNew Issue                                   

======================================================================




More information about the cmake-developers mailing list