Merge topic 'test-BuildDepends-sleep'

e4114ee9 Tests/BuildDepends: Make 3-second delay more robust
This commit is contained in:
Brad King 2014-05-20 09:40:17 -04:00 committed by CMake Topic Stage
commit ab07b2dd4f
2 changed files with 1 additions and 8 deletions

View File

@ -182,8 +182,7 @@ else()
endif()
message("Waiting 3 seconds...")
# any additional argument will cause ${bar} to wait forever
execute_process(COMMAND ${bar} -infinite TIMEOUT 3 OUTPUT_VARIABLE out)
execute_process(COMMAND ${CMAKE_COMMAND} -E sleep 3)
message("Modifying Project/foo.cxx")
write_file(${BuildDepends_BINARY_DIR}/Project/foo.cxx

View File

@ -15,11 +15,5 @@ int main(int argc, char** argv)
/* Print out the string that should have been regenerated. */
printf("%s\n", regen_string);
fflush(stdout);
// if any argument is used, wait forever
if (argc>1)
{
// wait that we get killed...
for(;;);
}
return 0;
}