summaryrefslogtreecommitdiffstats
path: root/Tests/BuildDepends/Project
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2014-05-19 14:50:11 (GMT)
committerBrad King <brad.king@kitware.com>2014-05-19 14:51:16 (GMT)
commite4114ee9e93dc899724c48802cc529efec92f547 (patch)
tree5188fac46f1d960c1fb23e1c0afc9a710c72873d /Tests/BuildDepends/Project
parent7019152aa2951ba14bd89c4805a9a9bdb17e7060 (diff)
downloadCMake-e4114ee9e93dc899724c48802cc529efec92f547.zip
CMake-e4114ee9e93dc899724c48802cc529efec92f547.tar.gz
CMake-e4114ee9e93dc899724c48802cc529efec92f547.tar.bz2
Tests/BuildDepends: Make 3-second delay more robust
Use "cmake -E sleep 3" instead of execute_process with a TIMEOUT of 3. This avoids using a busy loop or depending on a timeout to kill it.
Diffstat (limited to 'Tests/BuildDepends/Project')
-rw-r--r--Tests/BuildDepends/Project/bar.cxx6
1 files changed, 0 insertions, 6 deletions
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;
}