[Cmake-commits] [cmake-commits] zach.mullen committed timeout.c 1.1 1.2
cmake-commits at cmake.org
cmake-commits at cmake.org
Wed Sep 30 14:48:42 EDT 2009
Update of /cvsroot/CMake/CMake/Tests/CTestTestTimeout
In directory public:/mounts/ram/cvs-serv8192
Modified Files:
timeout.c
Log Message:
Improved safety and removed busy waiting from the CTestTestTimeout test.
Index: timeout.c
===================================================================
RCS file: /cvsroot/CMake/CMake/Tests/CTestTestTimeout/timeout.c,v
retrieving revision 1.1
retrieving revision 1.2
diff -C 2 -d -r1.1 -r1.2
*** timeout.c 29 Sep 2009 19:18:46 -0000 1.1
--- timeout.c 30 Sep 2009 18:48:40 -0000 1.2
***************
*** 1,10 ****
! #include <stdio.h>
- /* infinite loop */
int main(void)
{
! while(1)
! {
! }
! return 0;
}
--- 1,15 ----
! #if defined(_WIN32)
! # include <windows.h>
! #else
! # include <unistd.h>
! #endif
int main(void)
{
! #if defined(_WIN32)
! Sleep(5000);
! #else
! sleep(5);
! #endif
! return -1;
}
More information about the Cmake-commits
mailing list