Imported Upstream version 3.25.0
[platform/upstream/cmake.git] / Tests / RunCMake / CTestTimeout / TestTimeout.c
1 #if defined(_WIN32)
2 #  include <windows.h>
3 #else
4 #  include <sched.h>
5 #  include <unistd.h>
6 #endif
7
8 #include <stdio.h>
9
10 int main(void)
11 {
12 #ifdef FORK
13   pid_t pid = fork();
14   if (pid != 0) {
15     return 0;
16   }
17 #endif
18
19 #if defined(_WIN32)
20   Sleep((TIMEOUT + 4) * 1000);
21 #else
22   sleep((TIMEOUT + 4));
23 #endif
24   return 0;
25 }