875eb8e158
In particular, this checks that CTest's use of select() has a sufficient file descriptor set size limit (FD_SETSIZE) to handle many child processes at the same time. Running 20 tests requires more than 64 descriptors, the Cygwin default that we override.
17 lines
222 B
C
17 lines
222 B
C
#if defined(_WIN32)
|
|
# include <windows.h>
|
|
#else
|
|
# include <unistd.h>
|
|
#endif
|
|
|
|
/* sleeps for 0.1 second */
|
|
int main(int argc, char** argv)
|
|
{
|
|
#if defined(_WIN32)
|
|
Sleep(100);
|
|
#else
|
|
usleep(100 * 1000);
|
|
#endif
|
|
return 0;
|
|
}
|