Paul Kunysch 875eb8e158 CTest: Add test for running many tests in parallel
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.
2013-03-22 09:02:12 -04:00

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;
}