diff options
author | Brad King <brad.king@kitware.com> | 2014-05-20 13:40:17 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-05-20 13:40:17 (GMT) |
commit | ab07b2dd4febe0d862654a08ac2c68a3844b919c (patch) | |
tree | ebd3c577f2af3635e6e293afa16d547f71244648 /Tests | |
parent | d01320d4b74dfa51952499f28974b764ae63b0f8 (diff) | |
parent | e4114ee9e93dc899724c48802cc529efec92f547 (diff) | |
download | CMake-ab07b2dd4febe0d862654a08ac2c68a3844b919c.zip CMake-ab07b2dd4febe0d862654a08ac2c68a3844b919c.tar.gz CMake-ab07b2dd4febe0d862654a08ac2c68a3844b919c.tar.bz2 |
Merge topic 'test-BuildDepends-sleep'
e4114ee9 Tests/BuildDepends: Make 3-second delay more robust
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/BuildDepends/CMakeLists.txt | 3 | ||||
-rw-r--r-- | Tests/BuildDepends/Project/bar.cxx | 6 |
2 files changed, 1 insertions, 8 deletions
diff --git a/Tests/BuildDepends/CMakeLists.txt b/Tests/BuildDepends/CMakeLists.txt index a875f07..8df331e 100644 --- a/Tests/BuildDepends/CMakeLists.txt +++ b/Tests/BuildDepends/CMakeLists.txt @@ -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 diff --git a/Tests/BuildDepends/Project/bar.cxx b/Tests/BuildDepends/Project/bar.cxx index 25d8bd2..dadf93d 100644 --- a/Tests/BuildDepends/Project/bar.cxx +++ b/Tests/BuildDepends/Project/bar.cxx @@ -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; } |