mirror of
https://github.com/reactos/CMake.git
synced 2025-01-24 20:55:22 +00:00
9afcecaf32
Write to the timeout test log file before sleeping and flush to be sure it is created. Move the check that the after-sleep line is not written out to the ctest script. Rename the CheckChild test to TestSleep since it no longer checks. Do not try to read the log file if it does not exist.
22 lines
409 B
C
22 lines
409 B
C
#if defined(_WIN32)
|
|
# include <windows.h>
|
|
#else
|
|
# include <unistd.h>
|
|
#endif
|
|
|
|
#include <stdio.h>
|
|
|
|
int main(void)
|
|
{
|
|
fprintf(stderr, "before sleep\n");
|
|
fflush(stderr); /* should not be needed, but just in case */
|
|
#if defined(_WIN32)
|
|
Sleep((TIMEOUT+4)*1000);
|
|
#else
|
|
sleep((TIMEOUT+4));
|
|
#endif
|
|
fprintf(stderr, "after sleep\n");
|
|
fflush(stderr); /* should not be needed, but just in case */
|
|
return 0;
|
|
}
|