diff options
author | Zach Mullen <zach.mullen@kitware.com> | 2011-01-03 16:25:46 (GMT) |
---|---|---|
committer | Zach Mullen <zach.mullen@kitware.com> | 2011-01-03 16:25:46 (GMT) |
commit | 6b0c7ded5777c5b4c703bbe59be5c6afcebb879d (patch) | |
tree | 5927fef4d46f4f9ae9c8709421f60b0ab147afba /Tests/CTestTestCostSerial/sleep.c | |
parent | edff9207ed82d241077d66b20087657f74e8b5b9 (diff) | |
download | CMake-6b0c7ded5777c5b4c703bbe59be5c6afcebb879d.zip CMake-6b0c7ded5777c5b4c703bbe59be5c6afcebb879d.tar.gz CMake-6b0c7ded5777c5b4c703bbe59be5c6afcebb879d.tar.bz2 |
Support explicitly set test costs in non-parallel testing.
Diffstat (limited to 'Tests/CTestTestCostSerial/sleep.c')
-rw-r--r-- | Tests/CTestTestCostSerial/sleep.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/CTestTestCostSerial/sleep.c b/Tests/CTestTestCostSerial/sleep.c new file mode 100644 index 0000000..cb9f87a --- /dev/null +++ b/Tests/CTestTestCostSerial/sleep.c @@ -0,0 +1,16 @@ +#if defined(_WIN32) +# include <windows.h> +#else +# include <unistd.h> +#endif + +/* sleeps for 1 second */ +int main(int argc, char** argv) +{ +#if defined(_WIN32) + Sleep(1000); +#else + sleep(1); +#endif + return 0; +} |