mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-30 02:59:22 -05:00
Tests: Do not expect EINTR when sleep is interrupted on GNU/Hurd
Previously `RunCMake.CTestTimeout` failed on GNU/Hurd because the `sleep` command does not set `errno` to `EINTR` when interrupted by a signal, which is a Linux-specific feature.
This commit is contained in:
committed by
Brad King
parent
2d60f5c7a6
commit
8f53526dec
@@ -45,7 +45,7 @@ int main(void)
|
|||||||
#if defined(_WIN32)
|
#if defined(_WIN32)
|
||||||
Sleep((TIMEOUT + 4) * 1000);
|
Sleep((TIMEOUT + 4) * 1000);
|
||||||
#elif defined(SIGNAL_IGNORE)
|
#elif defined(SIGNAL_IGNORE)
|
||||||
# if defined(__CYGWIN__) || defined(__sun__)
|
# if defined(__CYGWIN__) || defined(__sun__) || defined(__GNU__)
|
||||||
# define ERRNO_IS_EINTR (errno == EINTR || errno == 0)
|
# define ERRNO_IS_EINTR (errno == EINTR || errno == 0)
|
||||||
# else
|
# else
|
||||||
# define ERRNO_IS_EINTR (errno == EINTR)
|
# define ERRNO_IS_EINTR (errno == EINTR)
|
||||||
|
|||||||
Reference in New Issue
Block a user