View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0011554CMakeCTestpublic2010-12-01 16:092011-01-12 07:57
ReporterTommy Edvardsen 
Assigned ToBrad King 
PrioritynormalSeveritytextReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake 2.8.3 
Target VersionCMake 2.8.4Fixed in VersionCMake 2.8.4 
Summary0011554: Incorrect description for ctest_sleep command
DescriptionThe 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.
TagsNo tags attached.
Attached Files

 Relationships

  Notes
(0023652)
Tommy Edvardsen (reporter)
2010-12-01 16:30

Correction to my last sentence.
Sleep will only be performed if time1 + duration is greater than time2. For all other situations no sleep will be performed. This should be clearified in the description.
(0023842)
Brad King (manager)
2010-12-09 10:38

http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7145ca67 [^]

 Issue History
Date Modified Username Field Change
2010-12-01 16:09 Tommy Edvardsen New Issue
2010-12-01 16:30 Tommy Edvardsen Note Added: 0023652
2010-12-09 10:38 Brad King Assigned To => Brad King
2010-12-09 10:38 Brad King Status new => assigned
2010-12-09 10:38 Brad King Note Added: 0023842
2010-12-09 10:38 Brad King Status assigned => closed
2010-12-09 10:38 Brad King Resolution open => fixed
2011-01-12 07:57 David Cole Fixed in Version => CMake 2.8.4
2011-01-12 07:57 David Cole Target Version => CMake 2.8.4


Copyright © 2000 - 2018 MantisBT Team