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:
Mattias Ellert
2023-12-08 10:15:27 +01:00
committed by Brad King
parent 2d60f5c7a6
commit 8f53526dec

View File

@@ -45,7 +45,7 @@ int main(void)
#if defined(_WIN32)
Sleep((TIMEOUT + 4) * 1000);
#elif defined(SIGNAL_IGNORE)
# if defined(__CYGWIN__) || defined(__sun__)
# if defined(__CYGWIN__) || defined(__sun__) || defined(__GNU__)
# define ERRNO_IS_EINTR (errno == EINTR || errno == 0)
# else
# define ERRNO_IS_EINTR (errno == EINTR)